PEATDB/Ekin/Convert.py
def add_offset(cls, ekindataset, offset=0, column=0):
        """Add an offset value to one of the ekin data columns"""

        data=ekindataset[0].keys()
        for dp in data:
            if dp =='label' or dp=='label_widget':
                continue
            else:
                if ekindataset[column][dp]['var']!='':
                    p=float(ekindataset[column][dp]['var']) + offset
                    ekindataset[column][dp]['var'] = str(p)
                    print p
        return
Add an offset value to one of the ekin data columns
Add an offset value to one of the ekin data columns
Add an offset value to one of the ekin data columns
def add_offset(cls, ekindataset, offset=0, column=0):
        data=ekindataset[0].keys()
        for dp in data:
            if dp =='label' or dp=='label_widget':
                continue
            else:
                if ekindataset[column][dp]['var']!='':
                    p=float(ekindataset[column][dp]['var']) + offset
                    ekindataset[column][dp]['var'] = str(p)
                    print p
        return
def add_offset ( cls , ekindataset , offset = 0 , column = 0 ) : data = ekindataset [ 0 ] . keys ( ) for dp in data : if dp == 'label' or dp == 'label_widget' : continue else : if ekindataset [ column ] [ dp ] [ 'var' ] != '' : p = float ( ekindataset [ column ] [ dp ] [ 'var' ] ) + offset ekindataset [ column ] [ dp ] [ 'var' ] = str ( p ) print p return
Add an offset value to one of the ekin data columns
Add an offset value to one of the ekin data columns
"""Add an offset value to one of the ekin data columns"""
cls
ekindataset
offset
column