Skip to content

Commit

Permalink
allow NESTML model with no output block in NEST code generator
Browse files Browse the repository at this point in the history
  • Loading branch information
clinssen committed Aug 11, 2020
1 parent 8e82ec0 commit d2629b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pynestml/codegeneration/nest_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,8 @@ def print_output_event(cls, ast_body):
else:
raise RuntimeError('Unexpected output type. Must be current or spike, is %s.' % str(output))
else:
return 'none'
# no output port defined in the model: pretend dummy spike output port to obtain usable model
return 'nest::SpikeEvent'

@classmethod
def print_buffer_initialization(cls, variable_symbol):
Expand Down

0 comments on commit d2629b9

Please sign in to comment.