PEATDB/Ekin/Base.py
def checkDataset(self, data):
        """Check for old format or bad dataset"""

        if type(data) is types.DictType: #old format
            x,y,a,xerr,yerr = EkinConvert.ekin2xy(data, getall=1, geterrors=True)
            return EkinDataset(x=x,y=y,active=a,xerrs=xerr,yerrs=yerr)
        elif not type(data) is EkinDataset:
            return None
        else:
            return data
Check for old format or bad dataset
Check for old format or bad dataset
Check for old format or bad dataset
def checkDataset(self, data):
        if type(data) is types.DictType: 
            x,y,a,xerr,yerr = EkinConvert.ekin2xy(data, getall=1, geterrors=True)
            return EkinDataset(x=x,y=y,active=a,xerrs=xerr,yerrs=yerr)
        elif not type(data) is EkinDataset:
            return None
        else:
            return data
def checkDataset ( self , data ) : if type ( data ) is types . DictType : x , y , a , xerr , yerr = EkinConvert . ekin2xy ( data , getall = 1 , geterrors = True ) return EkinDataset ( x = x , y = y , active = a , xerrs = xerr , yerrs = yerr ) elif not type ( data ) is EkinDataset : return None else : return data
Check for old format or bad dataset
Check for old format or bad dataset
"""Check for old format or bad dataset""" #old format
self
data