예제 #1
0
 def setUp(self):
     # create mapping
     Mapping(
         timerange=DateTimeTZRange(
             UTCDateTime(2002, 1, 1).datetime,
             UTCDateTime(2016, 1, 2).datetime),
         network="TA", station="A25A", location="", channel="BHE",
         new_network="XX", new_station="YY", new_location="00",
         new_channel="ZZZ").save()
     ContinuousTrace.update_all_mappings()
     # index waveform files
     [process_file(f) for f in FILES]
예제 #2
0
 def tearDown(self):
     # remove mappings
     Mapping.objects.all().delete()
     ContinuousTrace.update_all_mappings()