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.
Reproduce the bug:
Output: