def setup(self): self.cache = create_sensor_cache() add_applycal_sensors(self.cache, ATTRS, FREQS, CAL_STREAM, gaincal_flux=None)
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)
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')
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)