Hi everyone,
I am SUN, working in RIKEN, Japan. I am working on one issue. I am useing the GetConnections to get the weights and keep it in the text. connections = nest.GetConnections(source, target) When I want to update the weight with the new information. I am using this: conn=nest.GetConnections(gid,gid) nest.SetStatus(conn, newweight)
But it is not working, do you have any ideas?
Best wishes, Sun
On Tue, Aug 13, 2019 08:11:32 -0000, zhe.sun.vk@riken.jp wrote:
Hi everyone,
Hi Sun,
I am SUN, working in RIKEN, Japan.
I am working on one issue. I am useing the GetConnections to get the weights and keep it in the text. connections = nest.GetConnections(source, target)
This returns a list of dictionaries---one for each connection based on your source/target arguments. You can see the contents of "connections" using:
print(connections)
When I want to update the weight with the new information. I am using this: conn=nest.GetConnections(gid,gid) nest.SetStatus(conn, newweight)
But it is not working, do you have any ideas?
We want to update the "weight" key of the "connection" dictionary, so we would use:
nest.SetStatus(conn, {'weight': newweight})
Please try that and let us know if it works.
You could also use:
*nest.SetStatus(conn, params='weight', val=newweight)*
best,
Am Di., 13. Aug. 2019 um 11:17 Uhr schrieb Ankur Sinha < sanjay.ankur@gmail.com>:
On Tue, Aug 13, 2019 08:11:32 -0000, zhe.sun.vk@riken.jp wrote:
Hi everyone,
Hi Sun,
I am SUN, working in RIKEN, Japan.
I am working on one issue. I am useing the GetConnections to get the weights and keep it in the
text.
connections = nest.GetConnections(source, target)
This returns a list of dictionaries---one for each connection based on your source/target arguments. You can see the contents of "connections" using:
print(connections)
When I want to update the weight with the new information. I am using this: conn=nest.GetConnections(gid,gid) nest.SetStatus(conn, newweight)
But it is not working, do you have any ideas?
We want to update the "weight" key of the "connection" dictionary, so we would use:
nest.SetStatus(conn, {'weight': newweight})
Please try that and let us know if it works.
-- Thanks, Regards, Ankur Sinha (He / Him / His) | https://ankursinha.in PhD candidate in computational neuroscience at UH Biocomputation | http://biocomputation.herts.ac.uk Time zone: Europe/London _______________________________________________ NEST Users mailing list -- users@nest-simulator.org To unsubscribe send an email to users-leave@nest-simulator.org
Thank you very much!!! Sorry for my later reply. It is working now.
Sun
Thank you very much for your reply. This method is also working. Thank you for your help!!!
Best wishes, Sun