Skip to content

Commit

Permalink
Return relative tolerance to be a bit less strict
Browse files Browse the repository at this point in the history
  • Loading branch information
brynpickering committed Apr 7, 2021
1 parent d5de282 commit 732e241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,6 @@ def buffer_if_necessary(shape):

new_shape = shape.buffer(0.0)
assert new_shape.is_valid
assert np.isclose(new_shape.area, shape.area, rtol=1e-10)
assert np.isclose(new_shape.area, shape.area, rtol=1e-5)

return new_shape

0 comments on commit 732e241

Please sign in to comment.