Skip to content

Commit

Permalink
Merge pull request #2782 from nicolossus/port_test_ginzburg_and_mccul…
Browse files Browse the repository at this point in the history
…loch

Port `test_ginzburg_and_mcculloch` from SLI-2-Py
  • Loading branch information
heplesser authored Aug 30, 2023
2 parents cd35006 + 6e3e8c0 commit 3f1fa5f
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 58 deletions.
41 changes: 41 additions & 0 deletions testsuite/pytests/sli2py_neurons/test_ginzburg_and_mcculloch.py
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
58 changes: 0 additions & 58 deletions testsuite/unittests/test_ginzburg_and_mcculloch.sli

This file was deleted.

0 comments on commit 3f1fa5f

Please sign in to comment.