PEATDB/Ekin/Base.py
def checkDatasetParam(self, datasets):
        """Check dataset parameter to see if it's a list or not, allows
           methods to be called with dataset as a string or list"""
        if datasets=='ALL':
            return self.datasets
        else:
            import types
            if type(datasets) is types.StringType:
                s=datasets
                datasets=[]
                datasets.append(s)
                return datasets
            elif type(datasets) is types.ListType:
                return datasets
            else:
                print 'unknown format for dataset names, provide a list'
                return None
Check dataset parameter to see if it's a list or not, allows
           methods to be called with dataset as a string or list
Check dataset parameter to see if it's a list or not, allows
methods to be called with dataset as a string or list
Check dataset parameter to see if it ' s a list or not allows methods to be called with dataset as a string or list
def checkDatasetParam(self, datasets):
        if datasets=='ALL':
            return self.datasets
        else:
            import types
            if type(datasets) is types.StringType:
                s=datasets
                datasets=[]
                datasets.append(s)
                return datasets
            elif type(datasets) is types.ListType:
                return datasets
            else:
                print 'unknown format for dataset names, provide a list'
                return None
def checkDatasetParam ( self , datasets ) : if datasets == 'ALL' : return self . datasets else : import types if type ( datasets ) is types . StringType : s = datasets datasets = [ ] datasets . append ( s ) return datasets elif type ( datasets ) is types . ListType : return datasets else : print 'unknown format for dataset names, provide a list' return None
Check dataset parameter to see if it's a list or not, allows
methods to be called with dataset as a string or list
Check dataset parameter to see if it ' s a list or not allows methods to be called with dataset as a string or list
"""Check dataset parameter to see if it's a list or not, allows
           methods to be called with dataset as a string or list"""
self
datasets