From 974f1cd1db9294ae89c061dd83a4b4793d49920e Mon Sep 17 00:00:00 2001 From: cyrillemidingoyi Date: Wed, 29 Nov 2023 14:40:23 +0100 Subject: [PATCH] update --- src/pycropml/transpiler/generators/javaGenerator.py | 2 +- src/pycropml/transpiler/generators/pythonGenerator.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pycropml/transpiler/generators/javaGenerator.py b/src/pycropml/transpiler/generators/javaGenerator.py index fa6c15e..277ec76 100644 --- a/src/pycropml/transpiler/generators/javaGenerator.py +++ b/src/pycropml/transpiler/generators/javaGenerator.py @@ -295,7 +295,7 @@ def visit_assignment(self, node): self.visit(node.target) self.write("= new %s["%(self.types2[node.value.pseudo_type[1]])) self.visit(node.value.elements.right) - self.write("]") + self.write("];") self.newline(node) else: self.visit(node.target) diff --git a/src/pycropml/transpiler/generators/pythonGenerator.py b/src/pycropml/transpiler/generators/pythonGenerator.py index 1723608..c120a96 100644 --- a/src/pycropml/transpiler/generators/pythonGenerator.py +++ b/src/pycropml/transpiler/generators/pythonGenerator.py @@ -28,7 +28,6 @@ def __init__(self, tree, model=None, name = None): self.tree=tree self.model=model self.name = name - print(self.model,name,signature(self.model),"yyyyyy") self.indent_with=' '*4 self.imp=True if self.model: @@ -246,7 +245,6 @@ def visit_function_definition(self, node): self.newline(extra=1) self.newline(node) self.funcname = node.name - print(self.funcname, self.funcname.split("model_")) if self.model and self.funcname.startswith("model_") and self.funcname.split("model_")[1]==signature(self.model): self.write("#%%CyML Model Begin%%") self.newline(node)