Skip to content

Commit 6aa465a

Browse files
committed
Merge branch 'development' into experimental
* development: (45 commits) Fix typo feat: use values from text boxes for simulation Add note that current is in pA also... Tweak main readme Update README.md Image updates & text clarifications New circuit image & updated text Changing reversal potentials of Na and K to match NEURON tutorial Renamed I_inj_amplitude etc. to use delay/duration/amplitude Restructure notebook, more info in readme Fix image link Improved vclamp memory handling Reduce size of arrays (increase dt) for vclamp Move main python code from notebook to method launch_interactive_widget() Adding plot for conductance densities of Na and K Adding test on python hh example, by saving results to file Notebook updates Adding readmes and an image of the interactive notebook Extra requirement Add requirements file, initial update notebook ...
2 parents 7a79251 + c67b6ad commit 6aa465a

26 files changed

Lines changed: 1219 additions & 673 deletions

.github/workflows/non-omv.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ jobs:
2626
run: |
2727
pip install scipy matplotlib
2828
cd Tutorial/Source
29-
python HodgkinHuxley.py
29+
python HodgkinHuxley.py # test in current clamp mode
30+
python HodgkinHuxley.py -vclamp # test in voltrage clamp mode

.github/workflows/omv-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
python-version: [ 3.7, 3.9 ]
18-
engine: [ jNeuroML_Brian2, jNeuroML, jNeuroML_NEURON, jNeuroML_NetPyNE, jNeuroML_EDEN, jNeuroML_validate, jNeuroML_PyNN_NEURON ]
18+
engine: [ jNeuroML_Brian2, jNeuroML, jNeuroML_NEURON, jNeuroML_NetPyNE, jNeuroML_EDEN, jNeuroML_validate, jNeuroML_PyNN_NEURON, Brian2 ]
1919

2020
steps:
2121
- uses: actions/checkout@v2

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ Tutorial/Source/*json
3636
*code.gen.*
3737
*_eden.py
3838
**/.ipynb_checkpoints/
39+
/Tutorial/Source/HHCellNetwork.net.nml__flattened.xml
40+
/notebooks/Python_HH_version/hh_py_v.dat

README.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## Hodgkin Huxley Tutorials
22

3-
This repository contains the code for 2 related tutorials on the Hodgkin Huxley model
3+
This repository contains the code for a number of related tutorials on the Hodgkin Huxley model
44

5-
### Tutorial 1: HH model in Python and NeuroML
5+
### Tutorial 1A: HH model in Python and NeuroML
66

77
*Target audience: those who want to learn how to implement the HH model*
88

@@ -12,13 +12,23 @@ This was originally created by [@joebowen](https://github.com/joebowen) on behal
1212

1313
The latest version of the tutorial is visible [online at ReadTheDocs](http://hodgkin-huxley-tutorial.readthedocs.org/en/latest/).
1414

15+
### Tutorial 1B: Interactive introduction to the HH model in a Jupyter notebook
16+
17+
*Target audience: those who want to simulate the HH model using an interactive Python based web notebook*
18+
19+
This interactive [Jupyter notebook](https://jupyter.org/) can be used to run the Python version of the HH model from above, change the parameters of the model and display the dynamical properties of variables, without the need to write any code.
20+
21+
<p align="center"><kbd><a href="notebooks/Python_HH_version/README.md"><img src="https://raw.githubusercontent.com/openworm/hodgkin_huxley_tutorial/master/notebooks/HH_Jupyter.png" width="600"/></kbd></p>
22+
23+
Full details can be found [here](notebooks/Python_HH_version/README.md). This work was carried out as part of [Google Summer of Code 2022 by Rahul Sonkar](notebooks/GSoC_2022_Submission/GSoC_Documentation.md).
24+
1525
### Tutorial 2: Interactive introduction to the HH model on Open Source Brain
1626

1727
*Target audience: those who want to learn the basics of the HH model through running in-browser simulations*
1828

19-
This tutorial also uses the NeuroML model from above, but provides a high level introduction to the concepts of the model (as well as computational modelling in neuroscience).
29+
This tutorial also uses the NeuroML model from above, but provides a high level introduction to the concepts of the model (as well as computational modelling in neuroscience).
2030

21-
It can be accessed on the Open Source Brain site at this location: http://www.opensourcebrain.org/tutorials. It is built on the [Geppetto platform](http://www.geppetto.org/), which was also initially developed in the OpenWorm project.
31+
It can be accessed on the Open Source Brain site at this location: http://www.opensourcebrain.org/tutorials. It is built on the [Geppetto platform](http://www.geppetto.org/), which was also initially developed in the OpenWorm project.
2232

2333
![HH](https://raw.githubusercontent.com/openworm/hodgkin_huxley_tutorial/master/Tutorial2/NeuroML2/images/HH_OSB.png)
2434

@@ -29,10 +39,7 @@ See also http://www.opensourcebrain.org/projects/hodgkin-huxley-tutorial.
2939
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1493456.svg)](https://doi.org/10.5281/zenodo.1493456)
3040

3141

42+
3243
### Reusing this model
3344

3445
The code in this repository is provided under the terms of the [software license](LICENSE) included with it. If you use this model in your research, we respectfully ask you to cite the references outlined in the [CITATION](CITATION.md) file.
35-
36-
37-
38-

0 commit comments

Comments
 (0)