PEATDB/Ekin/Convert.py
def check_ekin_dataset(cls, ekindatasets):
        """Check if an ekin dataset has an data points in it at all"""
        for k in ekindatasets.keys():
            ekindataset = ekindatasets[k]
            xdatapoints=ekindataset[0].keys()
            count=0
            for datapoint in xdatapoints:
                if datapoint=='label' or datapoint=='label_widget':
                    continue
                else:
                    if not isinstance(ekindataset[0][datapoint], dict):
                        if ekindataset[0][datapoint] != '':
                            return 1
                    elif ekindataset[0][datapoint].has_key('var'):
                        if ekindataset[0][datapoint]['var']!='':
                            return 1
        return 0
Check if an ekin dataset has an data points in it at all
Check if an ekin dataset has an data points in it at all
Check if an ekin dataset has an data points in it at all
def check_ekin_dataset(cls, ekindatasets):
        for k in ekindatasets.keys():
            ekindataset = ekindatasets[k]
            xdatapoints=ekindataset[0].keys()
            count=0
            for datapoint in xdatapoints:
                if datapoint=='label' or datapoint=='label_widget':
                    continue
                else:
                    if not isinstance(ekindataset[0][datapoint], dict):
                        if ekindataset[0][datapoint] != '':
                            return 1
                    elif ekindataset[0][datapoint].has_key('var'):
                        if ekindataset[0][datapoint]['var']!='':
                            return 1
        return 0
def check_ekin_dataset ( cls , ekindatasets ) : for k in ekindatasets . keys ( ) : ekindataset = ekindatasets [ k ] xdatapoints = ekindataset [ 0 ] . keys ( ) count = 0 for datapoint in xdatapoints : if datapoint == 'label' or datapoint == 'label_widget' : continue else : if not isinstance ( ekindataset [ 0 ] [ datapoint ] , dict ) : if ekindataset [ 0 ] [ datapoint ] != '' : return 1 elif ekindataset [ 0 ] [ datapoint ] . has_key ( 'var' ) : if ekindataset [ 0 ] [ datapoint ] [ 'var' ] != '' : return 1 return 0
Check if an ekin dataset has an data points in it at all
Check if an ekin dataset has an data points in it at all
"""Check if an ekin dataset has an data points in it at all"""
cls
ekindatasets