def setUp(self): warnings.filterwarnings('ignore') stations = [501, 102, 105, 8001] self.off = calibration.DetermineStationTimingOffsets( stations=stations, data=sentinel.data, progress=sentinel.progress, force_stale=True)
def test_station_pairs_wrong_order(self): stations = [105, 102, 8001, 501] self.off = calibration.DetermineStationTimingOffsets( stations=stations, data=sentinel.data, progress=sentinel.progress, force_stale=True) results = list(self.off.get_station_pairs_within_max_distance()) self.assertEqual([(102, 105)], results)
def test_init_network(self): off = calibration.DetermineStationTimingOffsets(force_stale=True) self.assertIsInstance(off.cluster, HiSPARCNetwork)