Skip to content

Commit

Permalink
fix critical bug in CatmaidNeuron division (__truediv__)
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Jul 1, 2021
1 parent d39bab4 commit 5d4f14f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymaid/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def __truediv__(self, other):
"""Implement division for coordinates (nodes, connectors)."""
# Exclude missing radii from division
is_missing = self.nodes.radius == -1
n = super().__mul__(other)
n = super().__truediv__(other)
n.nodes.loc[is_missing, 'radius'] = -1

return n
Expand Down

0 comments on commit 5d4f14f

Please sign in to comment.