Skip to content

Commit

Permalink
fix convolutions integration and enhance integrate_odes() to integrat…
Browse files Browse the repository at this point in the history
…e specific ODEs
  • Loading branch information
C.A.P. Linssen committed Nov 17, 2023
1 parent fc30915 commit d5e98ba
Show file tree
Hide file tree
Showing 22 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion models/neurons/aeif_cond_alpha_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ model aeif_cond_alpha_neuron:
w += b
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
Expand Down
2 changes: 1 addition & 1 deletion models/neurons/aeif_cond_exp_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ model aeif_cond_exp_neuron:
w += b
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
2 changes: 1 addition & 1 deletion models/neurons/hh_cond_exp_destexhe_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ model hh_cond_exp_destexhe_neuron:
is_refractory = true
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
2 changes: 1 addition & 1 deletion models/neurons/hh_cond_exp_traub_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ model hh_cond_exp_traub_neuron:
is_refractory = true
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
6 changes: 3 additions & 3 deletions models/neurons/hh_moto_5ht_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ model hh_moto_5ht_neuron:

update:
# Hodgkin-Huxley type model: ODEs are always integrated, regardless of refractory state
V_m_old = V_m
integrate_odes()
V_m_old = V_m
integrate_odes()

if is_refractory:
# neuron is absolute refractory, decrease refractoriness timer
Expand All @@ -130,7 +130,7 @@ model hh_moto_5ht_neuron:
is_refractory = true
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
Expand Down
2 changes: 1 addition & 1 deletion models/neurons/hh_psc_alpha_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ model hh_psc_alpha_neuron:
is_refractory = true
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
Expand Down
2 changes: 1 addition & 1 deletion models/neurons/iaf_cond_alpha_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ model iaf_cond_alpha_neuron:
V_m = V_reset
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
Expand Down
2 changes: 1 addition & 1 deletion models/neurons/iaf_cond_beta_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ model iaf_cond_beta_neuron:
V_m = V_reset
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
Expand Down
2 changes: 1 addition & 1 deletion models/neurons/iaf_cond_exp_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ model iaf_cond_exp_neuron:
V_m = V_reset
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
Expand Down
2 changes: 1 addition & 1 deletion models/neurons/iaf_cond_exp_sfa_rr_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ model iaf_cond_exp_sfa_rr_neuron:
g_rr += q_rr
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
2 changes: 1 addition & 1 deletion models/neurons/iaf_psc_alpha_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ model iaf_psc_alpha_neuron:
V_m = V_reset
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
2 changes: 1 addition & 1 deletion models/neurons/iaf_psc_delta_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ model iaf_psc_delta_neuron:
V_m = V_reset
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
2 changes: 1 addition & 1 deletion models/neurons/iaf_psc_exp_dend_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ model iaf_psc_exp_dend:
V_m = V_reset
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
2 changes: 1 addition & 1 deletion models/neurons/iaf_psc_exp_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ model iaf_psc_exp_neuron:
V_m = V_reset
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
2 changes: 1 addition & 1 deletion models/neurons/izhikevich_psc_alpha_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ model izhikevich_psc_alpha_neuron:
U_m += d
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
2 changes: 1 addition & 1 deletion models/neurons/mat2_psc_exp_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ model mat2_psc_exp_neuron:

emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
2 changes: 1 addition & 1 deletion models/neurons/terub_gpe_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ model terub_gpe_neuron:
is_refractory = true
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
2 changes: 1 addition & 1 deletion models/neurons/terub_stn_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ model terub_stn_neuron:
is_refractory = true
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
2 changes: 1 addition & 1 deletion models/neurons/traub_cond_multisyn_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ model traub_cond_multisyn_neuron:
is_refractory = true
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
Expand Down
2 changes: 1 addition & 1 deletion models/neurons/traub_psc_alpha_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ model traub_psc_alpha_neuron:
is_refractory = true
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
Expand Down
2 changes: 1 addition & 1 deletion models/neurons/wb_cond_exp_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ model wb_cond_exp_neuron:
is_refractory = true
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
Expand Down
2 changes: 1 addition & 1 deletion models/neurons/wb_cond_multisyn_neuron.nestml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ model wb_cond_multisyn_neuron:
is_refractory = true
emit_spike()

onCondition(refr_t <= resolution() / 2):
onCondition(is_refractory and refr_t <= resolution() / 2):
# end of refractory period
refr_t = 0 ms
is_refractory = false
Expand Down

0 comments on commit d5e98ba

Please sign in to comment.