Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aserenko opened this issue Oct 17, 2024 · 0 comments · May be fixed by #3338
Open

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

aserenko opened this issue Oct 17, 2024 · 0 comments · May be fixed by #3338
Labels
S: Normal Handle this with default priority T: Bug Wrong statements in the code or documentation

Comments

@aserenko
Copy link
Contributor

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 aserenko linked a pull request Oct 17, 2024 that will close this issue
@gtrensch gtrensch added T: Bug Wrong statements in the code or documentation S: Normal Handle this with default priority labels Oct 18, 2024
@gtrensch gtrensch linked a pull request Oct 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: Normal Handle this with default priority T: Bug Wrong statements in the code or documentation
Projects
Status: To do
Development

Successfully merging a pull request may close this issue.

2 participants