From 69be32abba19b70fe8cb0908e532fac5b6010638 Mon Sep 17 00:00:00 2001 From: exahn Date: Wed, 7 Feb 2024 18:19:43 -0500 Subject: [PATCH] Fixed renamed variables --- tests/test_detect_target.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_detect_target.py b/tests/test_detect_target.py index f742e933..a3d4d419 100644 --- a/tests/test_detect_target.py +++ b/tests/test_detect_target.py @@ -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: