You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
master HEAD in the mock backend throws an error in …/pyNN/mock/projections.py line 43.
(We used the test introduced in PR #691.)
Traceback (most recent call last):
File "test/system/test_speed_mock.py", line 201, in test_scaling
self.do_scaling_test(N)
File "test/system/test_speed_mock.py", line 179, in do_scaling_test
proj = sim.Projection(
File "…/pyNN/mock/projections.py", line 43, in __init__
connector.connect(self)
TypeError: connect() missing 1 required positional argument: 'projection'
when providing a Connector type instead of an instance when creating a Projection:
proj=sim.Projection(pre, post, sim.OneToOneConnector, synapse_type=sim.StaticSynapse(weight=1.0))
The error itself is probably correct, but the error message could be improved to better explain the user error.
The text was updated successfully, but these errors were encountered:
muffgaga
changed the title
User-friendly error when providing a type instead of an instance of an Connector in Projection
Improve error when providing a Connector type instead of an instance in mock.Projection
Nov 25, 2020
master HEAD in the mock backend throws an error in
…/pyNN/mock/projections.py
line 43.(We used the test introduced in PR #691.)
when providing a Connector type instead of an instance when creating a
Projection
:The error itself is probably correct, but the error message could be improved to better explain the user error.
The text was updated successfully, but these errors were encountered: