Skip to content

Commit

Permalink
Prevent failure for SPA Transcode plots.
Browse files Browse the repository at this point in the history
Fixes #970.

This is only a hotfix preventing a complete crash of the GUI. The
functionality to override the output value for Transcode modules is
still not working with this even though the context menu suggests
otherwise. In the future, values should be overwritten in the same
way as we do for nodes.
  • Loading branch information
jgosmann authored and tcstewar committed Jun 8, 2018
1 parent ea77da1 commit e11a610
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Release History
0.4.2 (unreleased)
==================

- Bugfix: Cloud plots for nengo_spa.Transcode plots no longer fail


0.4.1 (June 5, 2018)
Expand Down
7 changes: 5 additions & 2 deletions nengo_gui/components/pointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,15 @@ def add_nengo_objects(self, page):
if loop_in and self.target == 'default':
input = self.obj.inputs[self.target][0]
self.conn2 = nengo.Connection(self.node, input, synapse=0.01)
else:
elif output.size_in > 0:
self.conn2 = nengo.Connection(self.node, output, synapse=0.01)
else:
self.conn2 = None

def remove_nengo_objects(self, page):
page.model.connections.remove(self.conn1)
page.model.connections.remove(self.conn2)
if self.conn2 is not None:
page.model.connections.remove(self.conn2)
page.model.nodes.remove(self.node)

def gather_data(self, t, x):
Expand Down

0 comments on commit e11a610

Please sign in to comment.