Commit 60494034 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Added tolerance when comparing coordinate grids with float values.

Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <>
parent 88e46a0a
......@@ -562,7 +562,7 @@ class COREG(object):
def equalize_pixGrids(self) -> None:
"""Equalize image grids and projections of reference and target image (align target to reference)."""
if not (prj_equal(self.ref.prj, self.shift.prj) and
is_coord_grid_equal(, *self.shift.xygrid_specs)):
is_coord_grid_equal(, *self.shift.xygrid_specs, tolerance=1e8)):
if not self.q:
print("Equalizing pixel grids and projections of reference and target image...")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment