Skip to content

Commit

Permalink
black/flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
janeirik committed Feb 19, 2024
1 parent 9c443d1 commit cd4bfc4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions testsuite/pytests/test_iaf_wang_2002.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def spiketrain_response_nmda(t, spiketrain):
at = alpha * tau_rise_NMDA
expn = gammaincc(1 - tr, at) * gamma(1 - tr) * at ** (tr - 1)

k_0 = -expn * at + at**tr * gamma(1 - tr)
k_0 = -expn * at + at ** tr * gamma(1 - tr)
k_1 = np.exp(-alpha * tau_rise_NMDA) - 1

response = np.zeros_like(t)
Expand Down Expand Up @@ -150,6 +150,7 @@ def test_wang():
nptest.assert_array_almost_equal(gaba_soln, mm2.events["s_GABA"])
nptest.assert_array_almost_equal(nmda_soln, mm2.events["s_NMDA"])


def test_illegal_connection_error():
"""
Test that connecting with NMDA synapses from iaf_psc_exp throws error.
Expand All @@ -161,10 +162,3 @@ def test_illegal_connection_error():
nmda_syn_spec = {"receptor_type": receptor_types["NMDA"]}
with pytest.raises(nest.kernel.NESTErrors.IllegalConnection):
nest.Connect(nrn1, nrn2, syn_spec=nmda_syn_spec)







0 comments on commit cd4bfc4

Please sign in to comment.