Thanks Marcel. So if I access the Synapses
object directly, I can set the delays with either S0.delay = ...
or S0.pre.delay = ...
(I’ve changed Synapses0
to S0
for brevity). However, if I do:
net.set_states({“S0_pre”: {“delay”: np.arange(4) * br.ms}})
(where S0
has been previously added to the Network
object, net
), then I get:
KeyError: “Network does not include a network with name ‘S0_pre’.”
I can’t see anything in the relevant entry in the states dictionary (from net.get_states()
) that would give me access to the SynapticPathway
(below). Do I need to explicitly add something else to the Network
?
'S0': {'N': array(4, dtype=int32),
'N_incoming': array([2, 2, 2, 2], dtype=int32),
'N_outgoing': array([2, 2, 2, 2], dtype=int32),
'N_post': array(2),
'N_pre': array(2),
'dt': 100. * usecond,
'dt_post': 100. * usecond,
'dt_pre': 100. * usecond,
'i': array([0, 0, 1, 1], dtype=int32),
'i_post': array([0, 1, 0, 1], dtype=int32),
'i_pre': array([0, 0, 1, 1], dtype=int32),
'j': array([0, 1, 0, 1], dtype=int32),
'lastspike': array([-10., -10., -10., -10.]) * ksecond,
'lastspike_post': array([-10., -10., -10., -10.]) * ksecond,
'not_refractory': array([ True, True, True, True]),
'not_refractory_post': array([ True, True, True, True]),
'period_pre': 0. * second,
't': 0. * second,
't_in_timesteps': array(0),
't_in_timesteps_post': array(0),
't_in_timesteps_pre': array(0),
't_post': 0. * second,
't_pre': 0. * second,
'tau_m': array([30., 30., 30., 30.]) * msecond,
'tau_m_post': array([30., 30., 30., 30.]) * msecond,
'v': array([-65.8616107 , -66.10371261, -65.8616107 , -66.10371261]) * mvolt,
'v_post': array([-65.8616107 , -66.10371261, -65.8616107 , -66.10371261]) * mvolt,
'w': array([ 5.42988123, -7.22922798, -1.82890738, 0.35918114]) * mvolt},