Hi Stine,
This is exactly what I am trying to do, see the code below
import nest
nest.ResetKernel()
E = nest.Create('aeif_cond_exp',2)
I = nest.Create('aeif_cond_exp',2)
nest.Connect(E,I)
for c in nest.GetConnections():
    print(c,c.source)
    print(nest.GetStatus(c.source))


I just thought it would be an unnecessary step to then convert c.source to a NodeCollection unless that is the only right way of getting the information of source node.

On Mon, Nov 8, 2021 at 10:50 AM Stine Brekke Vennemo <stine.brekke.vennemo@nmbu.no> wrote:
Dear Maryada,

Unfortunately, I was not able to open your attachment, so I could not have a look at your code. It is possible to convert a neuron id to a NodeCollection and then get the information by calling 

nc = nest.NodeCollection([neuron_id])
nc.get()

nest.GetStatus(nc) also works. Instead of the single neuron id in the list, you could also send several neuron id's.

This will not get you any information about the connections however. If this is what you are after, you need to get the SynapseCollection by calling nest.GetConnections(), and then either iterating the SynapseCollection and get the information for the individual connection or get the information for the entire connection.

Hope this helps!

Best wishes,
Stine


From: Maryada Maryada <er.maryada@gmail.com>
Sent: Thursday, November 4, 2021 15:24
To: NEST User Mailing List <users@nest-simulator.org>
Subject: [NEST Users] Get details of source and target from Connection list
 
Dear NEST users,
In the past version, for debugging purposes I used to get information of my source and target using the GetStatus function.

However, with NEST 3.0, I couldn't find a way to do so, mainly because I have to pass either a SynpaseCollection or NeuronCollection as a function argument to GetStatus. Is it possible to fetch node collection from neuron id? Or any easier way to get source and target properties.


I have attached the python file for the same.
--
Thanks,

Maryada

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


--
Thanks and Regards

Maryada