def __init__(self, gainfile, flagants=True):
        """ Initialize with a table of CASA gain solutions. Can later add BP.
        """
        
        # custom log file
        self.logger = logging.getLogger(__name__)
        if os.path.exists(gainfile):
            self.parsegain(gainfile)
            self.flagants = flagants
        else:
            self.logger.warn('Gainfile not found.')
            raise IOError
def __init__ ( self , gainfile , flagants = True ) : self . logger = logging . getLogger ( __name__ ) if os . path . exists ( gainfile ) : self . parsegain ( gainfile ) self . flagants = flagants else : self . logger . warn ( 'Gainfile not found.' ) raise IOError
Initialize with a table of CASA gain solutions. Can later add BP.