nest / nest-simulator

The NEST simulator
http://www.nest-simulator.org
GNU General Public License v2.0
544 stars 370 forks source link

"Non-unique IDs" error raised incorrectly when creating nodes not from a NodeCollection #3337

Open aserenko opened 1 month ago

aserenko commented 1 month ago

Reproduce the bug:

neuron_ids = nest.Create("parrot_neuron", 10)
nest.Connect(
    pre=neuron_ids[:1],
    # Necessary to reproduce the bug: cast the IDs to a tuple instead of NodeCollection
    post=neuron_ids[1:].global_id,
    conn_spec='all_to_all'
)

Output:

nest.lib.hl_api_exceptions.ArgumentType: ArgumentType in SLI function ConnectIf `pre` or `post` contain non-unique IDs, then they must have the same length.