Hi!
I have (finally) installed NEST 3.10 ... and I have step on a problem.
The code below has two options to assign neurons to nodes:
- If use the direct assignment ( nodes = neurons ), it works correctly on sequential execution, but it fails when executing using mpirun.
- If use the GetLocalNodeCollection() assignment ( I know it is deprecated ), it works CORRECTLY on BOTH sequential and mpirun execution.
This is the message I get, related to not knowing about b, but it does not complain about the writing use in 'node.b=0.25'. That is, it looks like there is a problem when combining MPI and reading that node.b variable.
Traceback (most recent call last):
File "/home/xotazu/neuro/nest_2/test_3_10_inzhikevich.py", line 11, in <module>
node.U_m = node.b * node.V_m
File "/home/neurobit/local/nest_3.10/lib64/python3.9/site-packages/nest/lib/hl_api_types.py", line 610, in __getattr__
Traceback (most recent call last):
File "/home/xotazu/neuro/nest_2/test_3_10_inzhikevich.py", line 11, in <module>
node.U_m = node.b * node.V_m
File "/home/neurobit/local/nest_3.10/lib64/python3.9/site-packages/nest/lib/hl_api_types.py", line 610, in __getattr__
return self.get(attr)
File "/home/neurobit/local/nest_3.10/lib64/python3.9/site-packages/nest/lib/hl_api_types.py", line 413, in get
result = get_parameters(self, params[0])
File "/home/neurobit/local/nest_3.10/lib64/python3.9/site-packages/nest/lib/hl_api_helper.py", line 459, in get_parameters
return self.get(attr)
File "/home/neurobit/local/nest_3.10/lib64/python3.9/site-packages/nest/lib/hl_api_types.py", line 413, in get
result = nestkernel.llapi_get_nc_status(nc._datum, param)
result = get_parameters(self, params[0])
File "/home/neurobit/local/nest_3.10/lib64/python3.9/site-packages/nest/lib/hl_api_helper.py", line 459, in get_parameters
File "nestkernel_api.pyx", line 603, in nestkernel_api.llapi_get_nc_status
KeyError: 'b'
result = nestkernel.llapi_get_nc_status(nc._datum, param)
File "nestkernel_api.pyx", line 603, in nestkernel_api.llapi_get_nc_status
KeyError: 'b'
Xavier
---------------------------
import nest
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