Skip to content

Commit fb31aec

Browse files
committed
Default injection current changed to single pulse and minor label updates
1 parent 864d5d8 commit fb31aec

2 files changed

Lines changed: 14 additions & 7 deletions

File tree

notebook/notebook.ipynb

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@
4848
},
4949
{
5050
"cell_type": "code",
51-
"execution_count": 8,
51+
"execution_count": 2,
5252
"metadata": {},
5353
"outputs": [
5454
{
5555
"data": {
5656
"application/vnd.jupyter.widget-view+json": {
57-
"model_id": "a4fcb2202ee348999f01df623a6598e9",
57+
"model_id": "5642c47f493c4f08bcd11f959297b0c6",
5858
"version_major": 2,
5959
"version_minor": 0
6060
},
@@ -68,7 +68,7 @@
6868
{
6969
"data": {
7070
"application/vnd.jupyter.widget-view+json": {
71-
"model_id": "af43f6c641d140c0a0a4459b17e39637",
71+
"model_id": "6521d11af86947c8b2c9fef49c7d6201",
7272
"version_major": 2,
7373
"version_minor": 0
7474
},
@@ -121,8 +121,15 @@
121121
"1) Starting from the bottom, the first (bottom-most) plot shows neural membrane voltage activity. The spikes here are called \"action potentials\" and correspond directly to the current/time plot. Outflux of *Na* directly followed by influx of *K* causes the spiking activity observed in the plot.\n",
122122
"2) The second plot from the bottom shows the activation/inactivation parameters of the ion channels in the neuron. \n",
123123
"3) Third plot from the bottom (the current/time plot) makes this more concrete, showing the influx (negative y-axis) and outflux (positive y-axis) of ions passing through each type of ion channel being modeled.\n",
124-
"4) The top-most plot, shows two currents injected into the cell membrane at times 100ms and 300ms for default values. If injection current is changed from above slider then it will be a single rectangular pulse based on user input."
124+
"4) The top-most plot, shows current injected into the cell membrane at times 150ms for default values. The injection current can be changed from above slider for amplitude, duration and delay."
125125
]
126+
},
127+
{
128+
"cell_type": "code",
129+
"execution_count": null,
130+
"metadata": {},
131+
"outputs": [],
132+
"source": []
126133
}
127134
],
128135
"metadata": {

notebook/ui_widget.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def highlight_slider():
6565
header_potential = ipywidgets.HTMLMath(value=r"<b> Nernst Reverasal Potentials, \(mV\)</b>")
6666
header_simTime = ipywidgets.HTMLMath(value=r"<b> Simulation Time, \(ms\)</b>")
6767
header_injCurrent = ipywidgets.HTMLMath(value=r"<b> Injection Current, \(\mu{A}/cm^2\)</b>")
68-
injCurrent_note = ipywidgets.HTML(value=f"<i>*For injection current width = 0, the model uses default two pulse signal from tutorial</i>")
68+
injCurrent_note = ipywidgets.HTML(value=f"<i>*For injection current duration = 0, the model uses default pulse signal from tutorial</i>")
6969

7070
#slider widgets
7171
slider_capacitance = ipywidgets.FloatSlider(value=default_capacitance,min=0,max=3,step=0.1,description='Capacitance',readout=False,continuous_update=False)
@@ -76,8 +76,8 @@ def highlight_slider():
7676
slider_pot_K = ipywidgets.FloatSlider(value=default_pot_K,min=-100,max=100,step=0.1,description='Potassium',readout=False,continuous_update=False)
7777
slider_pot_L = ipywidgets.FloatSlider(value=default_pot_L,min=-100,max=100,step=0.1,description='Leak',readout=False,continuous_update=False)
7878
slider_amplitude = ipywidgets.FloatSlider(value=default_amplitude,min=-20,max=200,step=0.1,description='Amplitude',readout=False,continuous_update=False)
79-
slider_width = ipywidgets.FloatSlider(value=default_width,min=0,max=500,step=0.1,description='Width',readout=False,continuous_update=False)
80-
slider_translation = ipywidgets.FloatSlider(value=default_translation,min=0,max=250,step=0.1,description='Start at',readout=False,continuous_update=False)
79+
slider_width = ipywidgets.FloatSlider(value=default_width,min=0,max=500,step=0.1,description='Duration',readout=False,continuous_update=False)
80+
slider_translation = ipywidgets.FloatSlider(value=default_translation,min=0,max=250,step=0.1,description='Time Delay',readout=False,continuous_update=False)
8181

8282
#text box widgets
8383
time_start = ipywidgets.FloatText(value=0,description='Start Time',disabled=True)

0 commit comments

Comments
 (0)