Skip to content

Commit 3ef3185

Browse files
committed
netpyne-44 Do not record simulation commands
1 parent 4e09f44 commit 3ef3185

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

webapp/components/general/GeppettoJupyterUtils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const addslashes = function (str) {
6565
return (str + '').replace(/[\\"']/g, '\\$&').replace(/\u0000/g, '\\0');
6666
}
6767

68-
const evalPythonMessage = function (command, parameters, parse = true) {
68+
const evalPythonMessage = function (command, parameters, parse = true, record = true) {
6969
let parametersString = '';
7070
if (parameters) {
7171
if (parameters.length > 0) {
@@ -79,7 +79,7 @@ const evalPythonMessage = function (command, parameters, parse = true) {
7979
if (parse) {
8080
finalCommand = `utils.convertToJS(${finalCommand})`;
8181
}
82-
return execPythonMessage(finalCommand, handle_output);
82+
return execPythonMessage(finalCommand, handle_output, record);
8383
};
8484

8585
export { execPythonMessage, evalPythonMessage, execPythonMessageWithoutRecording };

webapp/redux/middleware/middleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function isGeppettoModel(obj) {
9797
const createSimulateBackendCall = async (cmd, payload, consoleMessage, spinnerType) => {
9898
console.log(consoleMessage);
9999

100-
const response = await Utils.evalPythonMessage(cmd, [payload]);
100+
const response = await Utils.evalPythonMessage(cmd, [payload], true, false);
101101
console.log('Python response', response);
102102

103103
const responsePayload = processError(response);

0 commit comments

Comments
 (0)