Example #1
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)