Hi Barna,

 

Yes, a Github issue would be useful.

 

Best,

Hans Ekkehard

 

--

 

Prof. Dr. Hans Ekkehard Plesser

Head, Department of Data Science

 

Faculty of Science and Technology

Norwegian University of Life Sciences

PO Box 5003, 1432 Aas, Norway

 

Phone +47 6723 1560

Email hans.ekkehard.plesser@nmbu.no

Home http://arken.nmbu.no/~plesser

 

 

 

On 02/02/2022, 16:16, "Barna Zajzon" <b.zajzon@fz-juelich.de> wrote:

 

Hello!

Thanks for the speedy reply! With v3.2, using NodeCollections is successful:

neurons = nest.Create('iaf_psc_exp', 2)
nest.Connect(nest.NodeCollection([1]), nest.NodeCollection([2]),
             conn_spec='one_to_one', syn_spec={'synapse_model': 'static_synapse_lbl', 'synapse_label': 1})

However, when using arrays (as NodeCollection expects unique ids), I get the same error:

neurons = nest.Create('iaf_psc_exp', 2)
nest.Connect([1], [2], conn_spec='one_to_one', syn_spec={'synapse_model': 'static_synapse_lbl', 'synapse_label': 1})

>> nest.lib.hl_api_exceptions.TypeMismatch: TypeMismatch in SLI function connect_arrays

Removing the synapse_label parameter also works. Should I open an issue on Github regarding this?

Best,
Barna

On 2/2/22 7:48 AM, Hans Ekkehard Plesser wrote:

 
Dear Barna,
 
Could you try with NEST 3.2?
 
Best,
Hans Ekkehard
 
--
 
Prof. Dr. Hans Ekkehard Plesser
Head, Department of Data Science
 
Faculty of Science and Technology
Norwegian University of Life Sciences
PO Box 5003, 1432 Aas, Norway
 
Phone +47 6723 1560
Email hans.ekkehard.plesser@nmbu.no
Home http://arken.nmbu.no/~plesser
 
 
 
 
On 02/02/2022, 01:20, "Barna Zajzon" <b.zajzon@fz-juelich.de> wrote:
 
    Dear NEST community,
 
    When trying to pass a `synapse_label` parameter in the syn_spec 
    dictionary, in conjunction with the `one_to_one` rule and node ids 
    passed as arrays, I get the following error with NEST 3.0:
 
       File 
    "/home/zbarni/code/projects/lif_sorn_seqlearn/lif-sorn-nest-implementation/remote/test_nestml_multith.py", 
    line 29, in <module>
         nest.Connect([1], [2], conn_spec={'rule': 'one_to_one'}, 
    syn_spec={'synapse_model': 'static_synapse_lbl', 'synapse_label': 1})
       File 
    "/home/zbarni/software/installed/miniconda3/envs/del-lif-sorn-nestml-check_py390/lib/python3.9/site-packages/nest/ll_api.py", 
    line 228, in stack_checker_func
         return f(*args, **kwargs)
       File 
    "/home/zbarni/software/installed/miniconda3/envs/del-lif-sorn-nestml-check_py390/lib/python3.9/site-packages/nest/lib/hl_api_connections.py", 
    line 255, in Connect
         connect_arrays(pre, post, weights, delays, synapse_model, 
    syn_param_keys, syn_param_values)
       File "pynestkernel.pyx", line 360, in 
    pynestkernel.NESTEngine.connect_arrays
    nest.lib.hl_api_exceptions.TypeMismatch: TypeMismatch in SLI function 
    connect_arrays
 
 
    It works when using the `all_to_all` rule. Is this the expected behavior 
    or for some reason it's not possible to use synapse_label and the 
    one_to_one rule (yet)?
 
    Thank you,
    Barna
 
 
    _______________________________________________
    NEST Users mailing list -- users@nest-simulator.org
    To unsubscribe send an email to users-leave@nest-simulator.org
 
_______________________________________________
NEST Users mailing list -- users@nest-simulator.org
To unsubscribe send an email to users-leave@nest-simulator.org
-- 
Barna Zajzon
PhD Candidate 
 
Computation in Neural Circuits Group
Institute of Neuroscience and Medicine (INM-6)
Institute for Advanced Simulation (IAS-6)
JARA Institute Brain Structure-Function Relationships (INM-10)
Jülich Research Centre and JARA
52425 Jülich, Germany
http://www.fz-juelich.de/inm/inm-6