Skip to content

Commit

Permalink
remove first test
Browse files Browse the repository at this point in the history
  • Loading branch information
mstimberg committed Jun 21, 2024
1 parent e86fc5a commit 7b5722d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 274 deletions.
239 changes: 0 additions & 239 deletions .github/workflows/publish.yml

This file was deleted.

35 changes: 0 additions & 35 deletions brian2/tests/test_cpp_standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,6 @@
from brian2.utils.logger import catch_logs


@pytest.mark.cpp_standalone
@pytest.mark.standalone_only
def test_cpp_standalone():
set_device("cpp_standalone", build_on_run=False)
##### Define the model
tau = 1 * ms
eqs = """
dV/dt = (-40*mV-V)/tau : volt (unless refractory)
"""
threshold = "V>-50*mV"
reset = "V=-60*mV"
refractory = 5 * ms
N = 1000

G = NeuronGroup(
N, eqs, reset=reset, threshold=threshold, refractory=refractory, name="gp"
)
G.V = "-i*mV"
M = SpikeMonitor(G)
S = Synapses(G, G, "w : volt", on_pre="V += w")
S.connect("abs(i-j)<5 and i!=j")
S.w = 0.5 * mV
S.delay = "0*ms"

net = Network(G, M, S)
net.run(100 * ms)
device.build(directory=None, with_output=False)
# we do an approximate equality here because depending on minor details of how it was compiled, the results
# may be slightly different (if -ffast-math is on)
assert len(M.i) >= 17000 and len(M.i) <= 18000
assert len(M.t) == len(M.i)
assert M.t[0] == 0.0
reset_device()


@pytest.mark.cpp_standalone
@pytest.mark.standalone_only
def test_delete_code_data():
Expand Down

0 comments on commit 7b5722d

Please sign in to comment.