NeuralEnsemble / PyNN

A Python package for simulator-independent specification of neuronal network models.
Other
276 stars 126 forks source link

Cannot export to sonata a population of SpikeArray() objects #663

Open stefanocasali984 opened 4 years ago

stefanocasali984 commented 4 years ago

Hi,

I'm trying to convert a network built in pyNN to Sonata, using the export_to_sonata function. A specific cell population should be entirely composed by "parrot neurons" - in the original pyNEST model, this population simply gates some spike-trains and relay them to specific target cells, belonging to three different populations - ; I thought that a reasonable alternative for pyNN could be a SpikeArray. When I build my Network with populations and projections inside, the export_to_sonata function throws an error if the SpikeArray is included:

TypeError: Object dtype dtype('O') has no native HDF5 equivalent

If I remove the SpikeArray population, the conversion works. Is there any way to bypass this issue? Maybe I should use something different from a SpikeArray?

Thanks in advance

EDIT: I'm using pyNN version 0.9.4