Skip to content

Commit 31e8684

Browse files
authored
rxd handles np.float64
1 parent d42eb9c commit 31e8684

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

share/lib/python/neuron/rxd/rxdmath.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,10 @@ def _semi_compile(self, region, instruction):
750750
try:
751751
items_append(item._semi_compile(region, instruction))
752752
except AttributeError:
753-
items_append(f"{item!r}")
753+
try:
754+
items_append(repr(float(item)))
755+
except (TypeError, ValueError):
756+
items_append(f"{item!r}")
754757
counts_append(count)
755758
result = ""
756759
for i, c in zip(items, counts):

0 commit comments

Comments
 (0)