Skip to content

Commit

Permalink
Change tolerance for which we accept coordinates as correct.
Browse files Browse the repository at this point in the history
  • Loading branch information
redur committed May 24, 2024
1 parent 68825ce commit 2b4299f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/stratigraphy/util/predictions.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,8 @@ def evaluate_metadata(self, metadata_ground_truth: dict):
ground_truth_east = int(metadata_ground_truth["coordinates"]["E"])
ground_truth_west = int(metadata_ground_truth["coordinates"]["N"])

if (
math.isclose(int(self.metadata.coordinates.east.coordinate_value), ground_truth_east, rel_tol=0.001)
) and (
math.isclose(int(self.metadata.coordinates.north.coordinate_value), ground_truth_west, rel_tol=0.001)
if (math.isclose(int(self.metadata.coordinates.east.coordinate_value), ground_truth_east, abs_tol=2)) and (
math.isclose(int(self.metadata.coordinates.north.coordinate_value), ground_truth_west, abs_tol=2)
):
self.metadata_is_correct["coordinates"] = True
else:
Expand Down

0 comments on commit 2b4299f

Please sign in to comment.