I get an error that sometimes it appears and sometimes it doesn´t. Do you know why is this so?
import nengo
model = nengo.Network()
with model:
stim = nengo.Node([0])
a = nengo.Ensemble(label='a', n_neurons=50, dimensions=1)
b=nengo.Ensemble (n_neurons=50, dimensions=2)
nengo.Connection(stim, a)
nengo.Connection(stim,b[0])
nengo.Connection(a,b[1])
nengo.Connection (b,b)
Traceback (most recent call last):
File "c:\users\f_r_e\anaconda3\lib\site-packages\nengo\builder\signal. py", line 245, in __getitem__
return dict.__getitem__(self, key)
KeyError: Signal(<Neurons of <Ensemble "a">>.voltage[(slice(None, 5, None),)], shape=(5,))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\f_r_e\anaconda3\lib\site-packages\nengo_gui\page .py", line 503, in runner
self.sim.step()
File "c:\users\f_r_e\anaconda3\lib\site-packages\nengo\simulator .py", line 346, in step
self._probe()
File "c:\users\f_r_e\anaconda3\lib\site-packages\nengo\simulator .py", line 232, in _probe
tmp = self.signals[self.model.sig[probe]['in']].copy()
File "c:\users\f_r_e\anaconda3\lib\site-packages\nengo\builder\signal .py", line 249, in __getitem__
base = dict.__getitem__(self, key.base)
KeyError: Signal(<Neurons of <Ensemble "a">>.voltage, shape=(50,))