Dear Ayssar,

You could call get() with arguments. If you want both "States" and "Parameter", call nc.get(["States", "Parameters"]). If you only want one of them, like States, call either nc.get("States") or, even simpler, nc.States. nc is your NodeCollection.

See more information on attributes and getting node status here: https://nest-simulator.readthedocs.io/en/latest/release_notes/v3.0/features/node_handles.html#direct-attributes

Best wishes,
Stine


From: m.benelhedi@fz-juelich.de <m.benelhedi@fz-juelich.de>
Sent: Wednesday, February 16, 2022 17:10
To: users@nest-simulator.org <users@nest-simulator.org>
Subject: [NEST Users] Retrieving states and parameters variables from NodeCollection
 
Hey Nest Team,

Calling "NodeCollection.get" returns a dictionary containing the user declared "States" and "Parameters" with other keys such as "global_id", "recordables", and "synaptic_elements".  In this context, I want to ask if there is a function in "nest" that returns exactly only the model declared "States" or "Parameters" without having these extra keys, and of course without having a prior knowledge of the "nestml" file from which the model was originated.

Best,
Ayssar
_______________________________________________
NEST Users mailing list -- users@nest-simulator.org
To unsubscribe send an email to users-leave@nest-simulator.org