Skip to content

Commit

Permalink
Fixed renamed variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan118 committed Feb 7, 2024
1 parent 73a28a8 commit 69be32a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_detect_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ def compare_detections(actual: detections_and_time.DetectionsAndTime, expected:
actual_detection = actual.detections[i]

assert expected_detection.label == actual_detection.label
np.testing.assert_almost_equal(expected_detection.confidence, actual_detection.confidence, decimal=CONFIDENCE_DESIRED_TOLERANCE)
np.testing.assert_almost_equal(expected_detection.confidence, actual_detection.confidence, decimal=CONFIDENCE_DECIMAL_TOLERANCE)

np.testing.assert_almost_equal(actual_detection.x1, expected_detection.x1, decimal=BOUNDING_BOX_DESIRED_TOLERANCE)
np.testing.assert_almost_equal(actual_detection.y1, expected_detection.y1, decimal=BOUNDING_BOX_DESIRED_TOLERANCE)
np.testing.assert_almost_equal(actual_detection.x2, expected_detection.x2, decimal=BOUNDING_BOX_DESIRED_TOLERANCE)
np.testing.assert_almost_equal(actual_detection.y2, expected_detection.y2, decimal=BOUNDING_BOX_DESIRED_TOLERANCE)
np.testing.assert_almost_equal(actual_detection.x1, expected_detection.x1, decimal=BOUNDING_BOX_DECIMAL_TOLERANCE)
np.testing.assert_almost_equal(actual_detection.y1, expected_detection.y1, decimal=BOUNDING_BOX_DECIMAL_TOLERANCE)
np.testing.assert_almost_equal(actual_detection.x2, expected_detection.x2, decimal=BOUNDING_BOX_DECIMAL_TOLERANCE)
np.testing.assert_almost_equal(actual_detection.y2, expected_detection.y2, decimal=BOUNDING_BOX_DECIMAL_TOLERANCE)


def create_detections(detections_from_file: np.ndarray) -> detections_and_time.DetectionsAndTime:
Expand Down

0 comments on commit 69be32a

Please sign in to comment.