Skip to content

Commit

Permalink
Remove warning for synapse types
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldeistler committed Nov 6, 2023
1 parent 4f9c52d commit 85c2a43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neurax/modules/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,11 @@ def _step_synapse(
synapse_names[i] == type(synapse_type).__name__
), "Mixup in the ordering of synapses. Please create an issue on Github."
synapse_states, synapse_current_terms = synapse_type.step(
u, delta_t, voltages, params, np.asarray(pre_syn_inds[i])
u, delta_t, voltages, params, np.asarray(pre_syn_inds[synapse_names[i]])
)
synapse_current_terms = postsyn_voltage_updates(
voltages,
np.asarray(post_syn_inds[i]),
np.asarray(post_syn_inds[synapse_names[i]]),
*synapse_current_terms,
)
syn_voltage_terms += synapse_current_terms[0]
Expand Down

0 comments on commit 85c2a43

Please sign in to comment.