diff --git a/neurots/generate/soma.py b/neurots/generate/soma.py index 767f795a..6f128b62 100644 --- a/neurots/generate/soma.py +++ b/neurots/generate/soma.py @@ -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])