def isSWD(self, file):
        '''Checks the format of a file to see if it is in the 
        Maxent samples with data (SWD) format.
        '''
        if os.path.exists(file):
            reader = csv.reader(open(file, 'r'))
            header = reader.next()
            if header[0].lower() in ['species', 'full_name', 'fullname']:
                return True
        
        return False
dataset/ETHPy150Open VisTrails/VisTrails/contrib/sahm/pySAHM/MaxentRunner.py/MAXENTRunner.isSWD/original