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
When I try to inject the same dc_source into cells[0] and cells[1]
I get and error :
/PyNN/pyNN/brian/standardmodels/electrodes.py", line 109, in _update_current
cell.parent.brian_group.i_inj[idx] += self.amplitudes[self.i] - self.prev_amp_dict[idx] #* ampere
KeyError: 0
However if I create another dc_source and inject it in cells[1], it works just fine.
This code works with neuron.
The text was updated successfully, but these errors were encountered:
AndreiMoise111
changed the title
Problem injecting one DC_Source into 2 different cells
Problem injecting one DC_Source into 2 different cells in Brian
Jul 11, 2019
Consider the code :
When I try to inject the same dc_source into cells[0] and cells[1]
I get and error :
However if I create another dc_source and inject it in cells[1], it works just fine.
This code works with neuron.
The text was updated successfully, but these errors were encountered: