Skip to content

Commit

Permalink
more iterations per default
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasprobst committed Mar 12, 2024
1 parent ef71361 commit b6d66b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synpivimage/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit b6d66b8

Please sign in to comment.