Hi
I tried to set the starting value of an SpikeSourcePoisson source on an periodic base, but it seems that the population is not a source any more (referring to the parameter from the error). Does someone know an workaround for that issue?
Brain def.:
pop_push = sim.Population(4, sim.SpikeSourcePoisson(rate=50.0, start=1000., duration=7000.))
Bibi def:
<populations population="push" xsi:type="Range" from="0" to="4"/>
TF code:
import hbp_nrp_cle.tf_framework as nrp
@nrp.MapVariable("timer_flag", initial_value=1.0)
@nrp.Robot2Neuron()
def frequent_call(t, timer_flag):
#log the first timestep (20ms), each couple of seconds
if (t%10.1>10.0) and (timer_flag.value == 1.0):
clientLogger.info('ever 10s: ', t)
timer_flag.value = 0.0
new_time = t + 1000.0
nrp.config.brain_root.push.set(start = new_time)
if (t%10.1<1.0) and (timer_flag.value == 0.0):
clientLogger.info('reset: ', t)
timer_flag.value = 1.0
error in TF:
start(valid parameter for IF_curr_exp are, i_offset, tau_m, tau_refrac, tau_syn_E, tau_syn_I, v_reset, v_thresh)