HI Hans,
OK, thanks the answer. Wish you can address it soon (this code works on NEST 3.9, and I would prefer not to go back to a previous version).
In addition, I stepped on another bug/feature. If I slightly modify the previous code (I copy it below) I get the following error about lists and MPI
Traceback (most recent call last): File "/home/xotazu/neuro/nest_2/test_3_10_izhikevich.py", line 24, in <module> conn.tau_plus = tau_plus File "/home/neurobit/local/nest_3.10/lib64/python3.9/site-packages/nest/lib/hl_api_types.py", line 793, in __setattr__ self.set({attr: value}) File "/home/neurobit/local/nest_3.10/lib64/python3.9/site-packages/nest/lib/hl_api_types.py", line 959, in set raise NotImplementedError( NotImplementedError: Passing lists of synapse parameter values is not supported in MPI-parallel simulations.
-------
import nest import numpy as np
pos = nest.spatial.grid(shape=[124,124])
neurons = nest.Create("izhikevich",positions=pos)
#nodes = neurons nodes = nest.GetLocalNodeCollection(neurons)
for node in nodes: node.b=0.25; node.U_m = node.b * node.V_m
conn_dict = {"rule":"fixed_indegree","indegree":10*10} syn_dict = {"synapse_model":"stdp_synapse"} nest.Connect(neurons,neurons,conn_dict,syn_dict)
conn = nest.GetConnections(nodes, nodes[0], 'stdp_synapse')
tau_plus = np.random.uniform(0,1,len(conn.tau_plus))
conn.tau_plus = tau_plus