Skip to content

Commit

Permalink
Update neurots/generate/soma.py
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudon authored May 17, 2023
1 parent 8df7b31 commit f77efda
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, atol=0.01, rtol=0):
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 f77efda

Please sign in to comment.