From e05a620f30c86fb1700312ee65acc0b505dd2744 Mon Sep 17 00:00:00 2001 From: Leonardo Schwarz Date: Mon, 1 Jul 2024 17:25:06 +0200 Subject: [PATCH] delete unit test of deleted code --- tests/unit/test_evaluate_pick_peaks_mad.py | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 tests/unit/test_evaluate_pick_peaks_mad.py diff --git a/tests/unit/test_evaluate_pick_peaks_mad.py b/tests/unit/test_evaluate_pick_peaks_mad.py deleted file mode 100644 index 9891975..0000000 --- a/tests/unit/test_evaluate_pick_peaks_mad.py +++ /dev/null @@ -1,22 +0,0 @@ -import unittest - -import numpy as np - -from depiction.evaluate_pick_peaks import EvaluatePickPeaksMAD - - -class TestEvaluatePickPeaksMAD(unittest.TestCase): - def test_evaluate_sample(self) -> None: - # note: this unit test is not really ideal right now - n_points = 20 - # deterministic noise - int_array = np.sin(np.array([0.1] * n_points)) * 0.2 - int_array[5] = 2.5 - int_array[11] = 3.5 - # evaluate - result = EvaluatePickPeaksMAD().evaluate(int_array=int_array) - np.testing.assert_array_equal(np.array([5, 11]), result) - - -if __name__ == "__main__": - unittest.main()