nest-simulator icon indicating copy to clipboard operation
nest-simulator copied to clipboard

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

Open aserenko opened this issue 1 year ago • 0 comments

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.

aserenko avatar Oct 17 '24 16:10 aserenko