-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding neuron input to EnsembleArray raises error #89
Comments
(Just a note, this is kind of an instance of #30) |
Fixing this is on the todo list for Spaun, a quick work around whenever you want to do this kind of thing is: for ens in A.ea_ensembles:
nengo.Connection(x, ens.neurons, transform=[[-2.5]] * ens.n_neurons) |
This is the effect of the suggested hack. Should I revert back to multiple Ensembles instead of using EnsembleArrays? Traceback (most recent call last):
File "/home/bogdanp/nengo_gui/nengo_gui/page.py", line 464, in runner
self.sim.run_steps(self.sim.max_steps)
File "/home/bogdanp/nengo_spinnaker/nengo_spinnaker/simulator.py", line 195, in run_steps
self._run_steps(n_steps)
File "/home/bogdanp/nengo_spinnaker/nengo_spinnaker/simulator.py", line 246, in _run_steps
self.host_sim.step()
File "/usr/local/lib/python2.7/dist-packages/nengo-2.1.0_dev-py2.7.egg/nengo/simulator.py", line 181, in step
step_fn()
File "/usr/local/lib/python2.7/dist-packages/nengo-2.1.0_dev-py2.7.egg/nengo/builder/operator.py", line 384, in step_simpyfunc
y = fn(t_sig.item(), *args) if t_in else fn(*args)
File "/home/bogdanp/nengo_spinnaker/nengo_spinnaker/simulator.py", line 305, in func
return f(t, x)
File "/home/bogdanp/nengo_spinnaker/nengo_spinnaker/builder/node.py", line 380, in output
self.controller.set_node_output(self.target, value)
File "/home/bogdanp/nengo_spinnaker/nengo_spinnaker/node_io/ethernet.py", line 128, in set_node_output
self.out_socket.sendto(packet.bytestring,
File "/usr/local/lib/python2.7/dist-packages/rig-0.8.0-py2.7.egg/rig/machine_control/packets.py", line 65, in bytestring
(self.src_port & 0x7) << 5 | (self.src_cpu & 0x1f),
TypeError: unsupported operand type(s) for &: 'NoneType' and 'int'
|
Sorry, can you update your copy of Rig? |
I don't know what Update 1: pip causing issues and trying to install numpy. Will try and install |
(Re |
Manually installing rig from git seems to work (could you please update the pip packages so that everything works with I am connecting the output of a Basal Ganglia directly to the neurons, so the transform is @mundya thank you! |
As far as I can tell the version of Rig on PIP is correct (0.10.0), did |
The offending change is already released, I believe. Try pip install "rig>=0.10.0" On 30 November 2015 at 09:56, Petrut Antoniu Bogdan <
|
@pabogdan - when you're back from your well-earned break would you mind seeing if this is still a problem for you? Thanks :) |
@mundya I will definitely :) This will be around the 5th of July. |
Thanks, 'fraid I won't be around until 19th. |
Minimal example:
This works with nengo, fails with nengo_spinnaker.
The text was updated successfully, but these errors were encountered: