-
Notifications
You must be signed in to change notification settings - Fork 364
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 #2782 from nicolossus/port_test_ginzburg_and_mccul…
…loch Port `test_ginzburg_and_mcculloch` from SLI-2-Py
- Loading branch information
Showing
2 changed files
with
41 additions
and
58 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
testsuite/pytests/sli2py_neurons/test_ginzburg_and_mcculloch.py
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,41 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# test_ginzburg_and_mcculloch.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/>. | ||
|
||
import nest | ||
|
||
|
||
def test_ginzburg_and_mcculloch_pitts_neurons(): | ||
""" | ||
Test `ginzburg_neuron` and `mcculloch_pitts_neuron` in simulation. | ||
This test ensures that we are able to connect a `ginzburg_neuron` with | ||
a `mcculloch_pitts_neuron` and that we can then run a simulation. | ||
""" | ||
|
||
ginzburg = nest.Create("ginzburg_neuron") | ||
mcculloch = nest.Create("mcculloch_pitts_neuron") | ||
nest.Connect(ginzburg, mcculloch) | ||
|
||
assert nest.num_connections == 1 | ||
|
||
nest.Simulate(100.0) | ||
|
||
assert nest.local_spike_counter >= 1 |
This file was deleted.
Oops, something went wrong.