Skip to content

Commit

Permalink
add/fix checks that inline expressions, parameters and internals cann…
Browse files Browse the repository at this point in the history
…ot be assigned to
  • Loading branch information
C.A.P. Linssen committed Sep 12, 2023
1 parent 44e5ae1 commit a172ff9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions models/neurons/aeif_cond_alpha.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ neuron aeif_cond_alpha:
state:
V_m mV = E_L # Membrane potential
w pA = 0 pA # Spike-adaptation current
r integer # Counts number of tick during the refractory period

equations:
inline V_bounded mV = min(V_m, V_peak) # prevent exponential divergence
Expand Down Expand Up @@ -93,8 +94,6 @@ neuron aeif_cond_alpha:

# refractory time in steps
RefractoryCounts integer = steps(t_ref)
# counts number of tick during the refractory period
r integer

input:
inh_spikes <- inhibitory spike
Expand Down
3 changes: 1 addition & 2 deletions models/neurons/aeif_cond_exp.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ neuron aeif_cond_exp:
state:
V_m mV = E_L # Membrane potential
w pA = 0 pA # Spike-adaptation current
r integer # Counts number of tick during the refractory period

equations:
inline V_bounded mV = min(V_m, V_peak) # prevent exponential divergence
Expand Down Expand Up @@ -88,8 +89,6 @@ neuron aeif_cond_exp:
internals:
# refractory time in steps
RefractoryCounts integer = steps(t_ref)
# counts number of tick during the refractory period
r integer

input:
inh_spikes <- inhibitory spike
Expand Down

0 comments on commit a172ff9

Please sign in to comment.