openworm / hodgkin_huxley_tutorial

A repository containing code for a number of tutorials on the Hodgkin Huxley model, including an interactive Jupyter notebook
GNU Lesser General Public License v3.0
36 stars 9 forks source link

Extend HodgkinHuxley.py for optionally running in voltage clamp mode #32

Closed pgleeson closed 2 years ago

pgleeson commented 2 years ago

Add option: pythonHodgkinHuxley.py -vclamp. This will not add the current clamp input, but will add a voltage clamp element which provides a currnet to hold the membrane potential fixed.

Specific parameters and the expressions to use can be found here: https://github.com/openworm/hodgkin_huxley_tutorial/blob/master/Tutorial/Source/vclamp.xml. This can be run with pynml LEMS_HH_VClamp.xml

pgleeson commented 2 years ago

Updates for thie merged to master now