Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pnbabu committed Feb 20, 2024
1 parent 4f9b852 commit a4864e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/nest_tests/stdp_window_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def nestml_generate_target():
input_path = [os.path.realpath(os.path.join(os.path.dirname(__file__), os.path.join(
os.pardir, os.pardir, s))) for s in files]
generate_nest_target(input_path=input_path,
logging_level="DEBUG",
logging_level="INFO",
suffix="_nestml",
codegen_opts={"neuron_synapse_pairs": [{"neuron": "iaf_psc_delta",
"synapse": "stdp",
Expand All @@ -74,7 +74,10 @@ def run_stdp_network(pre_spike_time, post_spike_time,
nest.set_verbosity("M_ALL")

nest.ResetKernel()
nest.Install("nestmlmodule")
try:
nest.Install("nestmlmodule")
except Exception:
pass
nest.SetKernelStatus({"resolution": resolution})

wr = nest.Create("weight_recorder")
Expand Down

0 comments on commit a4864e2

Please sign in to comment.