PEATDB/Ekin/Base.py
def addProject(self, E, overwrite=False, label=''):
        """Combine another project with the current one, duplicates are renamed"""

        for d in E.datasets:
            edata = copy.deepcopy(E.getDataset(d))
            fitdata = E.getFitData(d)
            if label != '':
                d = str(d)+'_'+str(label)
            if d in self.datasets:
                name = str(d) + '_a'
            else:
                name = str(d)
            self.insertDataset(edata, name, fit=fitdata)
            for field in self.ekinfields:
                if not E.__dict__.has_key(field):
                    continue
                #if E.__dict__.has_key(field):
                #    print field, type(E.__dict__[field]), E.__dict__[field][name]
                if E.__dict__[field].has_key(name):
                    self.__dict__[field][name] = copy.deepcopy(E.__dict__[field][name])
        return
Combine another project with the current one, duplicates are renamed
Combine another project with the current one, duplicates are renamed
Combine another project with the current one duplicates are renamed
def addProject(self, E, overwrite=False, label=''):
        for d in E.datasets:
            edata = copy.deepcopy(E.getDataset(d))
            fitdata = E.getFitData(d)
            if label != '':
                d = str(d)+'_'+str(label)
            if d in self.datasets:
                name = str(d) + '_a'
            else:
                name = str(d)
            self.insertDataset(edata, name, fit=fitdata)
            for field in self.ekinfields:
                if not E.__dict__.has_key(field):
                    continue
                if E.__dict__[field].has_key(name):
                    self.__dict__[field][name] = copy.deepcopy(E.__dict__[field][name])
        return
def addProject ( self , E , overwrite = False , label = '' ) : for d in E . datasets : edata = copy . deepcopy ( E . getDataset ( d ) ) fitdata = E . getFitData ( d ) if label != '' : d = str ( d ) + '_' + str ( label ) if d in self . datasets : name = str ( d ) + '_a' else : name = str ( d ) self . insertDataset ( edata , name , fit = fitdata ) for field in self . ekinfields : if not E . __dict__ . has_key ( field ) : continue if E . __dict__ [ field ] . has_key ( name ) : self . __dict__ [ field ] [ name ] = copy . deepcopy ( E . __dict__ [ field ] [ name ] ) return
Combine another project with the current one, duplicates are renamed
Combine another project with the current one duplicates are renamed
"""Combine another project with the current one, duplicates are renamed""" #if E.__dict__.has_key(field): #    print field, type(E.__dict__[field]), E.__dict__[field][name]
self
E
overwrite
label