Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/blocks/mrc_call_python_function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export const pythonFromBlock = function(
if (block.outputConnection) {
return [code, Order.FUNCTION_CALL];
} else {
return code + ';\n';
return code; + '\n';
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/blocks/mrc_class_method_def.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ export const pythonFromBlock = function (
'):\n';

if(block.mrcPythonMethodName == '__init__'){
code += generator.INDENT + "self.mechanisms = [];\n"
code += generator.INDENT + "self.mechanisms = []\n";

}

Expand Down
6 changes: 3 additions & 3 deletions src/blocks/mrc_set_python_variable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export const pythonFromBlock = function(
if (setPythonVariableBlock.mrcImportModule) {
generator.addImport(setPythonVariableBlock.mrcImportModule);
}
const code = moduleName + '.' + varName + ' = ' + value + ';\n';
const code = moduleName + '.' + varName + ' = ' + value + '\n';
return code;
}
case VAR_KIND_CLASS: {
Expand All @@ -279,13 +279,13 @@ export const pythonFromBlock = function(
if (setPythonVariableBlock.mrcImportModule) {
generator.addImport(setPythonVariableBlock.mrcImportModule);
}
const code = className + '.' + varName + ' = ' + value + ';\n';
const code = className + '.' + varName + ' = ' + value + '\n';
return code;
}
case VAR_KIND_INSTANCE: {
const selfValue = generator.valueToCode(block, 'SELF', Order.MEMBER);
const value = generator.valueToCode(block, 'VALUE', Order.NONE);
const code = selfValue + '.' + varName + ' = ' + value + ';\n';
const code = selfValue + '.' + varName + ' = ' + value + '\n';
return code;
}
default:
Expand Down