From da1813b3a2fb82f06bff5a47a5c1fbfbad40d90f Mon Sep 17 00:00:00 2001 From: Romain Hugonnet Date: Mon, 9 Oct 2023 17:52:04 -0500 Subject: [PATCH] Check with different rounding --- xdem/coreg/affine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xdem/coreg/affine.py b/xdem/coreg/affine.py index f7664f9a..0efc4f09 100644 --- a/xdem/coreg/affine.py +++ b/xdem/coreg/affine.py @@ -186,8 +186,8 @@ def residuals(parameters: tuple[float, float, float], y_values: NDArrayf, x_valu # Round results above the tolerance to get fixed results on different OS a_parameter, b_parameter, c_parameter = results.x - a_parameter = np.round(a_parameter, 2) - b_parameter = np.round(b_parameter, 2) + a_parameter = np.round(a_parameter, 1) + b_parameter = np.round(b_parameter, 1) # Calculate the easting and northing offsets from the above parameters east_offset = a_parameter * np.sin(b_parameter)