izhikevich2004.py has been updated & tested with Neuron & Brian on PyNN 0.9.0, but fails with this version of PyNN and NEST 2.10.0.
The first issue is that
sim.setup(timestep=time_step, min_delay=time_step)
is no longer compatible. I'm not sure whether just taking out min_delay here is recommended? When it is removed, there is an error related to the ramp current for plot R:
Traceback (most recent call last):
File "izhikevich2004.py", line 418, in <module>
scalebar_level=0.5)
File "izhikevich2004.py", line 96, in run_simulation
injectedCurrent = sim.StepCurrentSource(times=times, amplitudes=amps)
File "/usr/local/lib/python2.7/dist-packages/pyNN/nest/standardmodels/electrodes.py", line 35, in __init__
self.set_native_parameters(parameter_space)
File "/usr/local/lib/python2.7/dist-packages/pyNN/nest/standardmodels/electrodes.py", line 74, in set_native_parameters
'amplitude_times': times})
File "/home/padraig/opt/nest/lib/python2.7/site-packages/nest/lib/hl_api_helper.py", line 138, in stack_checker_func
return f(*args, **kwargs)
File "/home/padraig/opt/nest/lib/python2.7/site-packages/nest/lib/hl_api_info.py", line 171, in SetStatus
sr('Transpose { arrayload pop SetStatus } forall')
File "/home/padraig/opt/nest/lib/python2.7/site-packages/nest/__init__.py", line 79, in catching_sli_run
raise _kernel.NESTError("{0} in {1}{2}".format(errorname, commandname, message))
pynestkernel.NESTError: BadProperty in SetStatus_id: Setting status of a 'step_current_generator' with GID 4: Amplitude times must strictly increasing.
Other simulators seem to be happy with the arrays generated for times/amplitudes, and the times do look like they're strictly increasing.
The code ran successfully on PyNN 0.8.2 and NEST 2.10.0
Any insight on this @apdavison, @appukuttan-shailesh?
izhikevich2004.py has been updated & tested with Neuron & Brian on PyNN 0.9.0, but fails with this version of PyNN and NEST 2.10.0.
The first issue is that
is no longer compatible. I'm not sure whether just taking out min_delay here is recommended? When it is removed, there is an error related to the ramp current for plot R:
Other simulators seem to be happy with the arrays generated for times/amplitudes, and the times do look like they're strictly increasing.
The code ran successfully on PyNN 0.8.2 and NEST 2.10.0
Any insight on this @apdavison, @appukuttan-shailesh?