pKaTool/explore/large_dataset_manager.py
def find_file(self,name,check_it=1):
        """Give the filename, find it in a dir"""
        import os
        newdir=self.get_dir_name(name)
        filename=os.path.join(newdir,str(name))
        if check_it:
            if os.path.isfile(filename):
                return filename
            print 'Could not find',filename
            raise Exception('Crap routine')
        else:
            return filename
Give the filename, find it in a dir
Give the filename, find it in a dir
Give the filename find it in a dir
def find_file(self,name,check_it=1):
        import os
        newdir=self.get_dir_name(name)
        filename=os.path.join(newdir,str(name))
        if check_it:
            if os.path.isfile(filename):
                return filename
            print 'Could not find',filename
            raise Exception('Crap routine')
        else:
            return filename
def find_file ( self , name , check_it = 1 ) : import os newdir = self . get_dir_name ( name ) filename = os . path . join ( newdir , str ( name ) ) if check_it : if os . path . isfile ( filename ) : return filename print 'Could not find' , filename raise Exception ( 'Crap routine' ) else : return filename
Give the filename, find it in a dir
Give the filename find it in a dir
"""Give the filename, find it in a dir"""
self
name
check_it