PEATDB/Ekin/Meta.py
def convertfromOld(self, E=None):
        """Convert from old meta data format """
        if E == None:
            E = self.project
        old = E.__Exp_Meta_Dat__
        #print old
        for f in old['Operator']:
            self.add(f, old['Operator'][f])
        for i in old['Meta_Data']:
            #print i
            f = i['Name']
            try:
                units=i['units']
            except:
                units=None
            #print f
            self.add(f, i['value'], units)

        return
Convert from old meta data format 
Convert from old meta data format
Convert from old meta data format
def convertfromOld(self, E=None):
        if E == None:
            E = self.project
        old = E.__Exp_Meta_Dat__
        for f in old['Operator']:
            self.add(f, old['Operator'][f])
        for i in old['Meta_Data']:
            f = i['Name']
            try:
                units=i['units']
            except:
                units=None
            self.add(f, i['value'], units)
        return
def convertfromOld ( self , E = None ) : if E == None : E = self . project old = E . __Exp_Meta_Dat__ for f in old [ 'Operator' ] : self . add ( f , old [ 'Operator' ] [ f ] ) for i in old [ 'Meta_Data' ] : f = i [ 'Name' ] try : units = i [ 'units' ] except : units = None self . add ( f , i [ 'value' ] , units ) return
Convert from old meta data format
Convert from old meta data format
"""Convert from old meta data format """ #print old #print i #print f
self
E