Hello,
I am trying to access the list of approx. 13 000 000 synapses in my
network. However, accessing any of the values in SynapseCollection runs
longer than my whole simulation and can cause out of memory issues.
In the following snippet, just the `conns.get('weight')` line takes my
computer 13 minutes to compute and uses over 5 GB of memory, even though
the data I am interested in should not be larger than 50 MB.
importnest
neurons= nest.Create('iaf_psc_exp', 20000)
conn_dict= {'rule': 'fixed_indegree',
'indegree': 300}
nest.Connect(neurons, neurons, conn_dict, syn_spec={'weight': 1.0})
conns= nest.GetConnections()
conns.get('weight')
How should I efficiently access/export the `source`, `target`, `weight`
and `distance` synaptic variables without unnecessary time or memory
overhead?
Thank you.
Best regards,
Maurycy Miękus