From b6d66b83e8444d0896afae62ca92e99911f60941 Mon Sep 17 00:00:00 2001 From: Matthias Probst Date: Tue, 12 Mar 2024 11:34:07 +0100 Subject: [PATCH] more iterations per default --- synpivimage/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synpivimage/utils.py b/synpivimage/utils.py index 0296b35..5a46305 100644 --- a/synpivimage/utils.py +++ b/synpivimage/utils.py @@ -18,7 +18,7 @@ def generate_particles(ppp: float, dz_max: Tuple[float, float], camera: Camera, laser: Laser, - iter_max: int = 20): + iter_max: int = 40): """Generates a particle class based on the current setup and given max displacements Parameters @@ -83,7 +83,7 @@ def generate_particles(ppp: float, if err < 0.01: logger.debug(f'Convergence crit (err < 0.01- reached. Residual error {err * 100:.1f} %') - if i > iter_max: + if i >= iter_max: logger.debug(f'Reached max iteration of {iter_max}') break