Skip to content

Commit f6f3165

Browse files
committed
more corrections
1 parent 42649d4 commit f6f3165

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

article/detorakis-2017.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ \section{Introduction}\label{introduction}
272272
thus we use the exact same number of internal currents in this work. The
273273
subthreshold dynamics are defined by a set of linear ordinary differential
274274
equations, while an instantaneous threshold potential controls when the neuron
275-
firing an action potential (spike) in a dynamic way. The ability of the MNN
275+
fires an action potential (spike) in a dynamic way. The ability of the MNN
276276
model to generate
277277
such a diverse spiking behavior is due to the complex update rules. In this
278278
work the MNN model has been implemented in Python (version 3.6.1) using
@@ -283,7 +283,7 @@ \section{Introduction}\label{introduction}
283283
\section{Methods}\label{methods}
284284

285285
In order to implement the model described in \cite{mihalas:2009}, we discretized
286-
the dynamical system using the forward Euler's integration scheme. The time step
286+
the dynamical system using the forward Euler integration scheme. The time step
287287
is fixed to $0.1\, \Rm{ms}$ for all the simulations, and the total simulation
288288
time $t_f$ varies according to figure 1 of the original paper. Our
289289
implementation differs from the one in the original paper, since in
@@ -535,10 +535,10 @@ \section{Results}\label{results}
535535
Figure~\ref{fig:1}, where the black solid line indicates the membrane potential
536536
($V(t)$), the red dashed line illustrates the instantaneous threshold potentials
537537
($\Theta(t)$), and the gray line shows the input to the neuron ($I_e/C$).
538-
The $x$-axis scale in all the panels are exactly the same as in the original
538+
The $x$-axis scales in all panels are exactly the same as in the original
539539
paper (indicating the total simulation time ($t_f$), while the $y$-axis scale
540540
differs from the one in the original paper. In this work the $y$-axis scale
541-
is the same same for all the subplots ($[-95, -25]\, \Rm{mV}$), except from
541+
is the same same for all the subplots ($[-95, -25]\, \Rm{mV}$), except for
542542
panels G and O ($[-145, -25]\, \Rm{mV}$).
543543

544544
Figures~\ref{fig:2} and~\ref{fig:3} depict the phase space of the phasic

code/neuron_model.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,24 +86,24 @@ def mnn_model(pms=None, Iext=np.zeros((200,)), dt=1.0,
8686
potential at the spike-event times.
8787
spikes (ndarray) : The spike trains.
8888
"""
89-
sim_time = Iext.shape[0] # Simulation time
89+
sim_steps = Iext.shape[0] # Total simulation steps
9090

9191
if pms is None:
9292
pms = default_parameters()
9393

9494
# ODEs Initial conditions
95-
I1 = IC[0] * np.ones((sim_time, )) # Internal current 1
96-
I2 = IC[1] * np.ones((sim_time, )) # Internal current 2
97-
V = IC[2] * np.ones((sim_time, )) # Membrane potential
98-
Theta = IC[3] * np.ones((sim_time, )) # Threshold potential
95+
I1 = IC[0] * np.ones((sim_steps, )) # Internal current 1
96+
I2 = IC[1] * np.ones((sim_steps, )) # Internal current 2
97+
V = IC[2] * np.ones((sim_steps, )) # Membrane potential
98+
Theta = IC[3] * np.ones((sim_steps, )) # Threshold potential
9999

100100
# Auxiliary vectors
101-
theta_ = np.zeros((sim_time, )) # Threshold track
102-
time_ = np.zeros((sim_time, )) # Time vector
101+
theta_ = np.zeros((sim_steps, )) # Threshold track
102+
time_ = np.zeros((sim_steps, )) # Time vector
103103

104104
spikes = [] # Spike-event times
105105
# Forward Euler integration of MNN
106-
for t in range(1, sim_time):
106+
for t in range(1, sim_steps):
107107
# ODEs
108108
I1[t] = I1[t-1] + dt * (-pms['k1'] * I1[t-1])
109109
I2[t] = I2[t-1] + dt * (-pms['k2'] * I2[t-1])

0 commit comments

Comments
 (0)