Uses list of known flux calibrators (with models in CASA) to find full name given in scan.

def set_fluxinfo(self):
        """ Uses list of known flux calibrators (with models in CASA) to find full name given in scan.
        """

        knowncals = ['3C286', '3C48', '3C147', '3C138']

        # find scans with knowncals in the name
        sourcenames = [self.sources[source]['source'] for source in self.sources]
        calsources = [cal for src in sourcenames for cal in knowncals if cal in src]
        calsources_full = [src for src in sourcenames for cal in knowncals if cal in src]
        if len(calsources):
            # if cal found, set band name from first spw
            self.band = self.sdm['Receiver'][0].frequencyBand.split('_')[1]

            if len(calsources) > 1:
                print 'Found multiple flux calibrators:', calsources
            self.fluxname = calsources[0]
            self.fluxname_full = calsources_full[0]
            print 'Set flux calibrator to %s and band to %s.' % (self.fluxname_full, self.band)
        else:
            self.fluxname = ''
            self.fluxname_full = ''
            self.band = ''