Skip to content

Commit

Permalink
Fix: Relax soma/first point check (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudon authored May 17, 2023
1 parent d4d5ecb commit 411203c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neurots/generate/soma.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def point_from_trunk_direction(self, phi, theta):

def orientation_from_point(self, point):
"""Return the orientation from the soma center to a point on the soma surface."""
if np.allclose(point, self.center):
if np.allclose(point, self.center, rtol=0):
raise ValueError("Point overlaps with soma center.")

point = np.asarray([point])
Expand Down

0 comments on commit 411203c

Please sign in to comment.