-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #710 from IGITUGraz/iss696
- Loading branch information
Showing
4 changed files
with
172 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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,33 @@ | ||
/* | ||
* test_event_proxies_issue-696.music | ||
* | ||
* 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/>. | ||
* | ||
*/ | ||
|
||
[sender] | ||
binary=nest | ||
np=1 | ||
args=test_event_proxies_issue-696_sender.sli | ||
|
||
[receiver] | ||
binary=nest | ||
np=1 | ||
args=test_event_proxies_issue-696_receiver.sli | ||
|
||
sender.out -> receiver.in [11] |
53 changes: 53 additions & 0 deletions
53
testsuite/musictests/test_event_proxies_issue-696_receiver.sli
This file contains 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,53 @@ | ||
/* | ||
* test_event_proxies_issue-696_receiver.sli | ||
* | ||
* 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/>. | ||
* | ||
*/ | ||
|
||
(unittest) run | ||
/unittest using | ||
|
||
statusdict/have_music :: not { exit_test_gracefully } if | ||
|
||
M_ERROR setverbosity | ||
|
||
11 /N_NEURONS Set | ||
|
||
/subnet Create /NG Set | ||
NG ChangeSubnet | ||
/iaf_psc_alpha N_NEURONS Create pop | ||
0 ChangeSubnet | ||
NG GetGlobalNodes /neurons Set | ||
|
||
/subnet Create /INP Set | ||
INP ChangeSubnet | ||
/music_event_in_proxy N_NEURONS Create pop | ||
0 ChangeSubnet | ||
INP GetGlobalNodes /inputs Set | ||
|
||
inputs | ||
{ | ||
/channel Set | ||
/n Set | ||
n << /port_name (in) /music_channel channel >> SetStatus | ||
n neurons channel get << /weight 750.0 >> Connect | ||
} | ||
forallindexed | ||
|
||
1 Simulate |
65 changes: 65 additions & 0 deletions
65
testsuite/musictests/test_event_proxies_issue-696_sender.sli
This file contains 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,65 @@ | ||
/* | ||
* test_event_proxies_issue-696_sender.sli | ||
* | ||
* 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/>. | ||
* | ||
*/ | ||
|
||
(unittest) run | ||
/unittest using | ||
|
||
statusdict/have_music :: not { exit_test_gracefully } if | ||
|
||
M_ERROR setverbosity | ||
|
||
10 /N_THREADS Set | ||
11 /N_NEURONS Set | ||
|
||
0 << /local_num_threads N_THREADS /resolution 0.1 >> SetStatus | ||
|
||
/subnet Create /SNG Set | ||
SNG ChangeSubnet | ||
/spike_generator N_NEURONS Create pop | ||
0 ChangeSubnet | ||
SNG GetGlobalNodes /generators Set | ||
|
||
/subnet Create /PNG Set | ||
PNG ChangeSubnet | ||
/parrot_neuron N_NEURONS Create pop | ||
0 ChangeSubnet | ||
PNG GetGlobalNodes /neurons Set | ||
generators | ||
{ | ||
/i Set /sg Set | ||
sg << /spike_times [0.1 0.2 0.3] >> SetStatus | ||
sg neurons i get << /delay 0.1 >> Connect | ||
} | ||
forallindexed | ||
|
||
/music_event_out_proxy Create /meop Set | ||
meop << /port_name (out) >> SetStatus | ||
|
||
neurons | ||
{ | ||
/channel Set | ||
/n Set | ||
n meop << /music_channel channel >> Connect | ||
} | ||
forallindexed | ||
|
||
1 Simulate |