Skip to content

Commit

Permalink
Added on_step hook
Browse files Browse the repository at this point in the history
  • Loading branch information
tcstewar committed Apr 18, 2018
1 parent 3095157 commit b778e30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nengo_gui/page.py
Original file line number Diff line number Diff line change
@@ -501,6 +501,8 @@ def runner(self):
self.sim.run_steps(self.sim.max_steps)
else:
self.sim.step()
if 'on_step' in self.locals:
self.locals['on_step'](self.sim)
except Exception as err:
if self.finished:
return

0 comments on commit b778e30

Please sign in to comment.