Closed apdavison closed 3 years ago
We could fix the expand()
method to handle non-numeric parameter values such as Sequence
, but really spike_times
should not be considered a computed parameter, since it doesn't depend on the values of any other parameters, so the code path with expand()
shouldn't be taken in this case. Fixing this properly would require an overhaul of the parameter translation machinery, which we should do at some point, but I think making SpikeSourceArray
a special case is an adequate fix for now.
Setting spike times using the set() method fails when running with more than one MPI process, if the backend causes "spike_times" to be a computed parameter (e.g. by adjusting time offset, as pyNN.nest does).
Example script:
Error message:
Reported by @antolikjan