Skip to content

Commit 74b183b

Browse files
committed
Fox for eden on py3.12
Add test on short pulse hh example
1 parent ec191bf commit 74b183b

6 files changed

Lines changed: 45 additions & 2 deletions

File tree

.github/workflows/non-omv.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
pip install scipy matplotlib
2828
cd Tutorial/Source
2929
python HodgkinHuxley.py # test in current clamp mode
30-
python HodgkinHuxley.py -vclamp # test in voltrage clamp mode
30+
python HodgkinHuxley.py -vclamp # test in voltage clamp mode

.github/workflows/omv-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
run: |
3030
pip install git+https://github.com/OpenSourceBrain/osb-model-validation
3131
pip install scipy sympy matplotlib cython pandas tables
32+
33+
pip install setuptools --upgrade # needed for eden on Python 3.12
3234
3335
- name: Run OMV tests on engine ${{ matrix.engine }}
3436
run: |

Tutorial/Source/test/.test.python.omt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Script for running automated tests on OSB using Travis-CI, see https://github.com/OpenSourceBrain/osb-model-validation
1+
# Script for running automated tests on OSB, see https://github.com/OpenSourceBrain/osb-model-validation
22

33
# Note: this is not really running with Brian2, it's just a way to get a general Python script tested on OMV...
44

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
system: Testing a single compartment cell
2+
3+
experiments:
4+
Current clamp:
5+
expected:
6+
spike times: [34.4625]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Script for running automated tests on OSB, see https://github.com/OpenSourceBrain/osb-model-validation
2+
3+
# Note: this is not really running with Brian2, it's just a way to get a general Python script tested on OMV...
4+
5+
target: TestShortPulse.py
6+
engine: Brian2
7+
mep: .test.short.mep
8+
experiments:
9+
Current clamp:
10+
observables:
11+
spike times:
12+
file:
13+
path: hh_py_v.dat
14+
columns: [0,1]
15+
scaling: [1, 1]
16+
spike detection:
17+
method: threshold
18+
threshold: 0
19+
tolerance: 0.001681202059472487
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import sys
2+
import os
3+
4+
# allow importing a module from the parent directory
5+
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
6+
from HodgkinHuxley import HodgkinHuxley
7+
8+
runner = HodgkinHuxley(runMode='iclamp', t_n=50, delta_t=0.0125,
9+
I_inj_amplitude=66, I_inj_duration=.1, I_inj_delay=30)
10+
11+
runner.simulate()
12+
13+
14+
15+
16+

0 commit comments

Comments
 (0)