Open AvidusMauch opened 3 years ago
This can be workaroundend by changing the default type from Seqeuence to ArrayParameter
I may be misunderstanding what the problem is, but the problem you're describing is why the Sequence class was introduced - to avoid confusion over how to interpret arrays/lists of arrays.
Although for simple cases, plain NumPy arrays or lists do work for setting spike times, it is safest to always use Sequence.
Lists of array-like parameters, e.g. spike_times in SpikeSourceArray, with homogeneous entries will be simplified and converted to ArrayParameter if they are not the same type as the corresponding default type (Sequence for spike_times).
Minimal example: