Skip to content

Commit

Permalink
fix NESTML printer
Browse files Browse the repository at this point in the history
  • Loading branch information
C.A.P. Linssen committed Jul 7, 2023
1 parent cda550b commit ca4fc07
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pynestml/codegeneration/printers/nestml_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def print_input_port(self, node: ASTInputPort) -> str:
if node.is_spike():
ret += "spike"
else:
ret += "current"
ret += "continuous"
ret += print_sl_comment(node.in_comment) + "\n"
return ret

Expand Down Expand Up @@ -442,7 +442,9 @@ def print_kernel(self, node: ASTKernel) -> str:

def print_output_block(self, node: ASTOutputBlock) -> str:
ret = print_ml_comments(node.pre_comments, self.indent, False)
ret += print_n_spaces(self.indent) + "output: " + ("spike" if node.is_spike() else "current")
ret += print_n_spaces(self.indent) + "output:\n"
ret += print_n_spaces(self.indent + 4)
ret += "spike" if node.is_spike() else "continuous"
ret += print_sl_comment(node.in_comment)
ret += "\n"
return ret
Expand Down

0 comments on commit ca4fc07

Please sign in to comment.