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(a)in.tum.de>
Sendt: lørdag 6. mars 2021 20:38
Til: users(a)nest-simulator.org <users(a)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<mailto:feldotto@in.tum.de>
https://www6.in.tum.de/en/people/benedikt-feldotto-msc/
www.neurorobotics.net<http://www.neurorobotics.net>