예제 #1
0
 def setup(self):
     self.cache = create_sensor_cache()
     add_applycal_sensors(self.cache,
                          ATTRS,
                          FREQS,
                          CAL_STREAM,
                          gaincal_flux=None)
예제 #2
0
 def setup(self):
     self.cache = create_sensor_cache()
     # Include fluxcal, which is also done in corrections_per_corrprod
     add_applycal_sensors(self.cache,
                          ATTRS,
                          FREQS,
                          CAL_STREAM,
                          gaincal_flux=FLUX_OVERRIDES)
예제 #3
0
 def test_indirect_cal_product(self):
     add_applycal_sensors(self.cache,
                          ATTRS,
                          FREQS,
                          'my_cal', [CAL_STREAM],
                          gaincal_flux=None)
     self.test_delay_sensors('my_cal')
     self.test_bandpass_sensors('my_cal')
     self.test_gain_sensors('my_cal')
예제 #4
0
 def test_add_sensors_does_nothing_if_no_ants_pols_or_spw(self):
     cache = create_sensor_cache()
     n_virtuals_before = len(cache.virtual)
     add_applycal_sensors(cache, {}, [], CAL_STREAM, gaincal_flux=None)
     n_virtuals_after = len(cache.virtual)
     assert_equal(n_virtuals_after, n_virtuals_before)
     attrs = ATTRS.copy()
     del attrs['center_freq']
     add_applycal_sensors(self.cache, attrs, FREQS, CAL_STREAM, gaincal_flux=None)
     n_virtuals_after = len(cache.virtual)
     assert_equal(n_virtuals_after, n_virtuals_before)