-
Notifications
You must be signed in to change notification settings - Fork 378
Port test_issue_1974 from SLI to Py #3439
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
Open
JanVogelsang
wants to merge
12
commits into
nest:master
Choose a base branch
from
JanVogelsang:sli2py-issue-1974
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
950639c
Ported issue 1974 slitest to python
JanVogelsang 9eedd6b
Fixed issue and added regression test
JanVogelsang bad198f
Ported issue 1974 slitest to python
JanVogelsang fe7c7c7
Adjusted test
JanVogelsang 611cba8
Fixed test
JanVogelsang 5ab1750
Merge branch 'sli2py-issue-1974' of github.com:JanVogelsang/nest-simu…
JanVogelsang bd9f4fa
Removed test_issue_3442.py which was added by accident
JanVogelsang 71cfbec
Merge branch 'refs/heads/nest-master' into sli2py-issue-1974
JanVogelsang 435743e
Added music skipping decorator and added to issue 1974 pytest
JanVogelsang bb8fa2e
Merge branch 'sli2py-issue-1974' of github.com:JanVogelsang/nest-simu…
JanVogelsang b7309d2
Merge branch 'CI-Ubuntu-2204' into sli2py-issue-1974
JanVogelsang a238511
Merge branch 'nest-master' into sli2py-issue-1974
JanVogelsang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# test_issue_1974.py | ||
# | ||
# This file is part of NEST. | ||
# | ||
# Copyright (C) 2004 The NEST Initiative | ||
# | ||
# NEST is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 2 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# NEST is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with NEST. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
|
||
from mpi_test_wrapper import MPITestAssertEqual | ||
|
||
|
||
@MPITestAssertEqual([1, 2, 4], debug=True) | ||
def test_issue_1974(): | ||
""" | ||
For each of the two parrot neurons, exactly one connection from/to the in/out MUSIC proxy must be created, | ||
specifically to the proxy on the rank on which the parrot neuron exists. Therefore, the pooled connections across | ||
ranks must be identical independent of number of ranks. | ||
""" | ||
|
||
import nest | ||
|
||
if not nest.ll_api.sli_func("statusdict/have_music ::"): | ||
return | ||
|
||
nest.total_num_virtual_procs = 4 | ||
|
||
nrns = nest.Create("parrot_neuron", 2) | ||
|
||
music_in = nest.Create("music_event_in_proxy", 1, {"port_name": "in_spikes"}) | ||
music_out = nest.Create("music_event_out_proxy", 1, {"port_name": "out_spikes"}) | ||
|
||
nest.Connect(music_in, nrns) | ||
nest.Connect(nrns, music_out) | ||
|
||
conns = nest.GetConnections().get(output="pandas").drop(labels=["port"], axis=1) | ||
conns.to_csv(OTHER_LABEL.format(nest.num_processes, nest.Rank()), index=False) # noqa: F821 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.