From f95aa415314624f369d46fd5769ab25d3d14d06e Mon Sep 17 00:00:00 2001 From: Keurfon Luu Date: Sat, 13 Aug 2022 10:07:31 +0200 Subject: [PATCH] more fix --- fteikpy/_fteik/_ray2d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fteikpy/_fteik/_ray2d.py b/fteikpy/_fteik/_ray2d.py index c281d13..1c1b192 100644 --- a/fteikpy/_fteik/_ray2d.py +++ b/fteikpy/_fteik/_ray2d.py @@ -55,7 +55,7 @@ def _ray2d(z, x, zgrad, xgrad, zend, xend, zsrc, xsrc, stepsize, max_step, honor if fac < 1.0: # Grid magnetism: handle precision issues due to fac - for ix in range(3): + for ix in range(2): if np.abs(pcur[ix] - lower[ix]) < 1.0e-8: pcur[ix] = lower[ix]