Skip to content

Commit 864d5d8

Browse files
committed
Fixed Sphinx documentation (Tutorial.rst)
-updated line numbers in Tutorial.rst for updated python script
1 parent 9e16d7c commit 864d5d8

3 files changed

Lines changed: 17 additions & 17 deletions

File tree

Tutorial/Source/HodgkinHuxley.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ def I_inj(self, t):
120120
return 10*(t>100) - 10*(t>200) + 35*(t>300) - 35*(t>400)
121121

122122
#""" running jupyterLab notebook """
123-
#advanced input (if checkbox selected)
123+
#injection current is defined
124124
elif self.I_inj_width>0:
125125
return self.I_inj_max*(t>self.I_inj_trans) - self.I_inj_max*(t>self.I_inj_trans+self.I_inj_width)
126126

127-
#basic input
127+
#default injection current
128128
else:
129-
return 10*(t>100) - 10*(t>200) + 35*(t>300) - 35*(t>400)
129+
return 10*(t>150) - 10*(t>300)
130130

131131
@staticmethod
132132
def dALLdt(X, t, self):
@@ -164,6 +164,7 @@ def Main(self):
164164
plt.rcParams['figure.figsize'] = [12, 8]
165165
plt.rcParams['font.size'] = 15
166166
plt.rcParams['legend.fontsize'] = 12
167+
plt.rcParams['legend.loc'] = "upper right"
167168

168169
fig=plt.figure()
169170

@@ -189,7 +190,6 @@ def Main(self):
189190
plt.legend()
190191

191192
plt.subplot(4,1,4, sharex = ax1)
192-
193193
plt.plot(self.t, V, 'k')
194194
plt.ylabel('V (mV)')
195195
plt.xlabel('t (ms)')

Tutorial/_media/figure_1.png

13.8 KB
Loading

Tutorial/_toc/Tutorial.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ This variable from `HodgkinHuxley.py <Hodgkin%20Huxley.html>`_:
4848

4949
.. literalinclude:: ../Source/HodgkinHuxley.py
5050
:language: python
51-
:lines: 8-9
51+
:lines: 12-15
5252

5353
Is used in this line in `hhcell.cell.nml <hhcell.html>`_:
5454

@@ -65,11 +65,11 @@ These variables from `HodgkinHuxley.py <Hodgkin%20Huxley.html>`_:
6565

6666
.. literalinclude:: ../Source/HodgkinHuxley.py
6767
:language: python
68-
:lines: 11-12
68+
:lines: 12-13,17-18
6969

7070
.. literalinclude:: ../Source/HodgkinHuxley.py
7171
:language: python
72-
:lines: 20-21
72+
:lines: 26-27
7373

7474
Are used in this line in `hhcell.cell.nml <hhcell.html>`_:
7575

@@ -87,11 +87,11 @@ These variables from `HodgkinHuxley.py <Hodgkin%20Huxley.html>`_:
8787

8888
.. literalinclude:: ../Source/HodgkinHuxley.py
8989
:language: python
90-
:lines: 14-15
90+
:lines: 12-13,20-21
9191

9292
.. literalinclude:: ../Source/HodgkinHuxley.py
9393
:language: python
94-
:lines: 23-24
94+
:lines: 29-30
9595

9696
Are used in this line in `hhcell.cell.nml <hhcell.html>`_:
9797

@@ -108,11 +108,11 @@ These variables from `HodgkinHuxley.py <Hodgkin%20Huxley.html>`_:
108108

109109
.. literalinclude:: ../Source/HodgkinHuxley.py
110110
:language: python
111-
:lines: 17-18
111+
:lines: 12-13,23-24
112112

113113
.. literalinclude:: ../Source/HodgkinHuxley.py
114114
:language: python
115-
:lines: 26-27
115+
:lines: 32-33
116116

117117
Are used in this line in `hhcell.cell.nml <hhcell.html>`_:
118118

@@ -129,7 +129,7 @@ This variable from `HodgkinHuxley.py <Hodgkin%20Huxley.html>`_:
129129

130130
.. literalinclude:: ../Source/HodgkinHuxley.py
131131
:language: python
132-
:lines: 29-30
132+
:lines: 12-13,35-36
133133

134134
Is used in this line in `LEMS_HH_Simulation.xml <LEMS_HH_Simulation.html>`_:
135135

@@ -266,7 +266,7 @@ This line from `HodgkinHuxley.py <Hodgkin%20Huxley.html>`_:
266266

267267
.. literalinclude:: ../Source/HodgkinHuxley.py
268268
:language: python
269-
:lines: 124
269+
:lines: 153
270270

271271
Is used to define the initial values for the model in `hhcell.cell.nml <hhcell.html>`_:
272272

@@ -294,7 +294,7 @@ This line in `HodgkinHuxley.py <Hodgkin%20Huxley.html>`_:
294294

295295
.. literalinclude:: ../Source/HodgkinHuxley.py
296296
:language: python
297-
:lines: 135-138
297+
:lines: 191-194
298298

299299
Is used in these lines in `LEMS_HH_Simulation.xml <LEMS_HH_Simulation.html>`_:
300300

@@ -306,7 +306,7 @@ This line in `HodgkinHuxley.py <Hodgkin%20Huxley.html>`_:
306306

307307
.. literalinclude:: ../Source/HodgkinHuxley.py
308308
:language: python
309-
:lines: 140-145
309+
:lines: 177-182
310310

311311
Is used in these lines in `LEMS_HH_Simulation.xml <LEMS_HH_Simulation.html>`_:
312312

@@ -318,7 +318,7 @@ This line in `HodgkinHuxley.py <Hodgkin%20Huxley.html>`_:
318318

319319
.. literalinclude:: ../Source/HodgkinHuxley.py
320320
:language: python
321-
:lines: 147-152
321+
:lines: 184-189
322322

323323
Is used in these lines in `LEMS_HH_Simulation.xml <LEMS_HH_Simulation.html>`_:
324324

@@ -330,7 +330,7 @@ This line in `HodgkinHuxley.py <Hodgkin%20Huxley.html>`_:
330330

331331
.. literalinclude:: ../Source/HodgkinHuxley.py
332332
:language: python
333-
:lines: 154-158
333+
:lines: 170-175
334334

335335
Is used in these lines in `LEMS_HH_Simulation.xml <LEMS_HH_Simulation.html>`_:
336336

0 commit comments

Comments
 (0)