From 220f0880fde84064553e584ab195fd446bb68b45 Mon Sep 17 00:00:00 2001 From: Terry Stewart Date: Sun, 4 Apr 2021 22:32:29 -0400 Subject: [PATCH] Handle NoTransform --- nengo_gui/components/netgraph.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nengo_gui/components/netgraph.py b/nengo_gui/components/netgraph.py index c1cade43..7fae54e3 100644 --- a/nengo_gui/components/netgraph.py +++ b/nengo_gui/components/netgraph.py @@ -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 (