Skip to content

Commit

Permalink
Check with different rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Oct 9, 2023
1 parent 22aad4a commit da1813b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xdem/coreg/affine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit da1813b

Please sign in to comment.