Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 def test_init_network(self):
     off = calibration.DetermineStationTimingOffsets(force_stale=True)
     self.assertIsInstance(off.cluster, HiSPARCNetwork)