Skip to content

Commit

Permalink
Do not unnecessarily use the "complicated" synaptic propagation algor…
Browse files Browse the repository at this point in the history
…ithm in numpy when scalar variables are present
  • Loading branch information
mstimberg committed Feb 16, 2015
1 parent 8011403 commit ff3cd83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brian2/codegen/runtime/numpy_rt/templates/synapses.py_
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{% set _non_synaptic = [] %}
{% for var in variables %}
{% if variable_indices[var] != '_idx' %}
{% if variable_indices[var] not in ('_idx', '0') %}
{# This is a trick to get around the scoping problem #}
{% if _non_synaptic.append(1) %}{% endif %}
{% endif %}
Expand Down

0 comments on commit ff3cd83

Please sign in to comment.