From 411203c4f34cf18a2abd2fba5e17796896dfbf9d Mon Sep 17 00:00:00 2001 From: Alexis Arnaudon Date: Wed, 17 May 2023 14:25:23 +0200 Subject: [PATCH] Fix: Relax soma/first point check (#68) --- neurots/generate/soma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])