Skip to content

Commit

Permalink
Example of jupyter-driven workbook
Browse files Browse the repository at this point in the history
  • Loading branch information
olupton committed May 16, 2023
2 parents abb5b09 + eae3fae commit 344bd13
Show file tree
Hide file tree
Showing 5 changed files with 1,227 additions and 592 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test ringtest using NEURON wheels
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
ci:
name: ${{matrix.os}} / ${{matrix.version}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-22.04]
version: [neuron, neuron-nightly]
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install NEURON
run: |
python -m pip install --upgrade pip
python -m pip install "${{matrix.version}}"
- name: Build .mod files
run: |
nrnivmodl -coreneuron mod/
- name: Run ringtest
run: |
# Test NEURON
python ringtest.py -tstop 100
diff spk1.std reference_data/spk1.100ms.std.ref
# Test CoreNEURON
python ringtest.py -coreneuron -tstop 100
sortspike spk1.std spk1.coreneuron.std
diff spk1.coreneuron.std reference_data/spk1.100ms.std.ref
1 change: 1 addition & 0 deletions cell.hoc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ proc biophys() {
insert pas
g_pas = 0.001
e_pas = -65
insert hh
}
}
proc biophys_inhomo(){}
Expand Down
Loading

0 comments on commit 344bd13

Please sign in to comment.