Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrillemidingoyi committed Nov 29, 2023
1 parent f314ecb commit 974f1cd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/pycropml/transpiler/generators/javaGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions src/pycropml/transpiler/generators/pythonGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 974f1cd

Please sign in to comment.