@@ -0,0 +1,1251 @@
+import unittest%0Aimport numpy as np%0Aimport pycomlink.processing.anomaly_detection.blackout_gap_detection as gap_detec%0A%0A%0Aclass TestBlackoutDetection(unittest.TestCase):%0A    def testBlackoutdetectionwithsimpletimeseries(self):%0A        rsl_list = %5Bnp.array(%0A            %5B-63, -66, -67, -69, -64, np.nan, -64, -66, -70, np.nan, -70, -68%5D),%0A            np.array(%5Bnp.nan, -66, -67, -69, -64, np.nan, -64, -66, -70,%0A                      np.nan, -70, -68%5D),%0A            np.array(%5B-63, -66, -67, -69, -64, np.nan, -64, -66, -70,%0A                      np.nan,-70, -np.nan%5D)%5D%0A        ref = np.array(%5BFalse, False, False, False, False, False,%0A                        False, False, False, True, False, False%5D)%0A%0A        for rsl in rsl_list:%0A            gap_start, gap_end = gap_detec.get_blackout_start_and_end(%0A                rsl=rsl, rsl_threshold=-65%0A            )%0A%0A            mask = gap_detec.created_blackout_gap_mask_from_start_end_markers(%0A                rsl, gap_start, gap_end%0A            )%0A            mask_reverse = gap_detec.created_blackout_gap_mask_from_start_end_markers(%0A                rsl, gap_end%5B::-1%5D, gap_start%5B::-1%5D%0A            )%0A            mask = mask %7C mask_reverse%5B::-1%5D%0A            np.testing.assert_array_almost_equal(mask, ref)%0A%0A%0A%0A%0A

add blackout gap detection test