From f668a0caa30b8477deeedafaf931dd5e2e7e39e1 Mon Sep 17 00:00:00 2001 From: Lingfei Wang Date: Sun, 21 Apr 2024 21:41:53 -0400 Subject: [PATCH] Relaxing too-strong sanity checks in trajectory class. --- src/dictys/traj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dictys/traj.py b/src/dictys/traj.py index a29da9f..0a5d393 100644 --- a/src/dictys/traj.py +++ b/src/dictys/traj.py @@ -179,7 +179,7 @@ def topoint(self)->point: Point object converted. """ return point.fromnodes(self) - def conform_locs(self,locs:NDArray[float],edges:NDArray[int],abs_err:float=1E-7,rel_err:float=1E-7)->NDArray: + def conform_locs(self,locs:NDArray[float],edges:NDArray[int],abs_err:float=1E-6,rel_err:float=1E-6)->NDArray: """ Conform point locations by clipping small deviations under float precision. An error will be trigger if the relative and absolute errors both exceed the given bounds.