Skip to content

Commit

Permalink
Fix a bug in the unit evaluation of the refractory keywords that snea…
Browse files Browse the repository at this point in the history
…ked in at some point
  • Loading branch information
Marcel Stimberg committed Jul 10, 2013
1 parent 9583b83 commit 551cc7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion brian2/groups/neurongroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def update_abstract_code(self, additional_namespace):
namespace = dict(self.group.namespace)
if additional_namespace is not None:
namespace.update(additional_namespace[1])
unit = parse_expression_unit(ref, namespace, self.group.specifiers)
unit = parse_expression_unit(str(ref), namespace,
self.group.specifiers)
if have_same_dimensions(unit, second):
self.abstract_code = 'not_refractory = (t - lastspike) > %s\n' % ref
elif have_same_dimensions(unit, Unit(1)):
Expand Down

0 comments on commit 551cc7a

Please sign in to comment.