Skip to content

Commit

Permalink
Fixed on_start
Browse files Browse the repository at this point in the history
  • Loading branch information
tcstewar committed Jun 12, 2018
1 parent 7430ab2 commit 7de5d54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions nengo_gui/components/sim_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,6 @@ def message(self, msg):
elif msg == 'continue':
if self.page.sim is None:
self.page.rebuild = True
if 'on_start' in self.page.locals:
self.page.locals['on_start'](self.page.sim)
else:
if 'on_continue' in self.page.locals:
self.page.locals['on_continue'](self.page.sim)
Expand Down
2 changes: 2 additions & 0 deletions nengo_gui/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ def build(self):
if self.sim is not None:
if self.settings.backend in Page.singleton_sims:
Page.singleton_sims[self.settings.backend] = self
if 'on_start' in self.locals:
self.locals['on_start'](self.sim)

# remove the temporary components added for visualization
for c in self.components:
Expand Down

0 comments on commit 7de5d54

Please sign in to comment.