Skip to content

Commit

Permalink
relax soma check
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudon committed May 17, 2023
1 parent d4d5ecb commit 8df7b31
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, atol=0.01, rtol=0):
raise ValueError("Point overlaps with soma center.")

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

0 comments on commit 8df7b31

Please sign in to comment.