NeuralEnsemble / PyNN

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

Positional Argument "label" seems to be missing #790

Closed dietriro closed 6 months ago

dietriro commented 10 months ago

Hello everyone,

I tried to use the reset() function of PyNN with Nest and ran into some issues. One of which is probably the code line below. I get the following error after running the simulation once, resetting it, running it again and then trying to retrieve some recorded values (from the cache):

__new__() missing 1 required positional argument "label"

The error seems to be caused by the missing positional parameter label when calling Variable. When adding label=None to the call, it seems to work. I am, however, not sure if this is a valid workaround or causes other issues.

https://github.com/NeuralEnsemble/PyNN/blob/13a1c00c49ac66782dfbae8c3655d05a0d733df7/pyNN/recording/__init__.py#L166C1-L166C68