Пример #1
0
 def _data_iter(self):
     for baseline in self._include_baselines:
         lags = self._complex_lags[baseline]
         visibilities = self._visibilities[baseline]
         phase_fits = self._phase_fits[baseline]
         m, phase = self._phase_params[baseline]
         delay = m * self.delay_conv
         data = (
             lags.dumps() +
             visibilities.dumps() + 
             phase_fits.dumps() +
             FLOAT.pack(delay) + FLOAT.pack(phase)
             )
         #self.logger.info(repr(data))
         yield baseline, data
Пример #2
0
 def set_source_flux(self, args):
     """ inst.set_source_flux(flux_Jy) -> err_code
     This accepts a single float representing the requested source flux density
     in Jansky's and for right now always returns an error code of 0
     meaning that the source flux was set successfully."""
     self._source_flux = FLOAT.unpack(args[:4])[0]
     self.logger.debug('set_source_flux(%.2f)' %self._source_flux)
     return SBYTE.pack(0)