Dear Stine,

thanks for the information and code example! I wasn't aware this is possible, but is exactly what I am searching for.

Thank you very much!


Best,

Benedikt


On 16.03.21 09:10, Stine Brekke Vennemo wrote:
Dear Benedikt,

It is possible to set the weight recorder after the network is created by setting the senders and targets of the weight_recorder with the set() function (or with SetStatus() for NEST 2.x). Something like this:

pre = nest.Create("iaf_psc_alpha", 10)
post = nest.Create("iaf_psc_alpha", 10)

nest.Connect(pre, post)

wr = nest.Create('weight_recorder')

# NEST 3 code:
wr.set({'senders': pre, 'targets': post})
print(wr.get(['senders', 'targets']))


# NEST 2.x code:
nest.SetStatus(wr, {'senders': pre, 'targets': post})
print(nest.GetStatus(wr, 'senders')[0])
print(nest.GetStatus(wr, 'targets')[0])

Best wishes,
Stine

Fra: Benedikt Feldotto <feldotto@in.tum.de>
Sendt: lĝrdag 6. mars 2021 20:38
Til: users@nest-simulator.org <users@nest-simulator.org>
Emne: [NEST Users] Weight Recorder after network creation
 

Dear all,

is it possible to assign the weight recorder to a synapse after the network is created? In the Neurorobotics Platform we allow the user to add devices (this can be additional nodes, or current inputs via SetStatus) after the creation of the network and it would be nice to also add recorders/readouts for spikes and weights. For spike recorders and multimeters this is possible as just a new node with a new connection is added.

Thanks!

Best Regards,

Benedikt

-- 
Benedikt Feldotto M.Sc.
Research Assistant

Human Brain Project - Neurorobotics

Technical University of Munich
Department of Informatics
Chair of Robotics, Artificial Intelligence and Real-Time Systems

Room HB 2.02.20
Parkring 13
D-85748 Garching b. München

Tel.: +49 89 289 17628
Mail: feldotto@in.tum.de

https://www6.in.tum.de/en/people/benedikt-feldotto-msc/
www.neurorobotics.net

_______________________________________________
NEST Users mailing list -- users@nest-simulator.org
To unsubscribe send an email to users-leave@nest-simulator.org
-- 
Benedikt Feldotto M.Sc.
Research Assistant

Human Brain Project - Neurorobotics

Technical University of Munich
Department of Informatics
Chair of Robotics, Artificial Intelligence and Real-Time Systems

Room HB 2.02.20
Parkring 13
D-85748 Garching b. München

Tel.: +49 89 289 17628
Mail: feldotto@in.tum.de

https://www6.in.tum.de/en/people/benedikt-feldotto-msc/
www.neurorobotics.net