Skip to content

Commit

Permalink
Handle NoTransform
Browse files Browse the repository at this point in the history
  • Loading branch information
tcstewar authored and tbekolay committed Jun 9, 2021
1 parent d219c73 commit 220f088
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nengo_gui/components/netgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,8 @@ def connection_kind(conn):
elif isinstance(post, nengo.ensemble.Neurons):
trafo = conn.transform
if hasattr(nengo, "transforms"): # Support for Nengo 3.0
trafo = trafo.sample()
if not isinstance(trafo, nengo.transforms.NoTransform):
trafo = trafo.sample()

if hasattr(trafo, "size"):
if trafo.size > 0 and (
Expand Down

0 comments on commit 220f088

Please sign in to comment.