PEATDB/Ekin/Base.py
def insertDataset(self, newdata=None, newname='data', xydata=None, fit=None,
                              replace=False, update=1):
        """Insert pre-existing data as a dataset"""
        #print newdata
        if newdata == None:
            ek = EkinDataset(xy=xydata)
        else:
            #check for old or bad data
            ek = self.checkDataset(newdata)
            if ek == False:
                return

        if self.data.has_key(newname) and replace==False:
            newname = newname + 'a'
        self.data[newname] = ek
        self.datasets.append(newname)
        self.length = len(self.datasets)
        if fit==None:
            fit = ek.getFit()
        self.setFitData(newname,fit)
        return
Insert pre-existing data as a dataset
Insert pre-existing data as a dataset
Insert pre - existing data as a dataset
def insertDataset(self, newdata=None, newname='data', xydata=None, fit=None,
                              replace=False, update=1):
        if newdata == None:
            ek = EkinDataset(xy=xydata)
        else:
            ek = self.checkDataset(newdata)
            if ek == False:
                return
        if self.data.has_key(newname) and replace==False:
            newname = newname + 'a'
        self.data[newname] = ek
        self.datasets.append(newname)
        self.length = len(self.datasets)
        if fit==None:
            fit = ek.getFit()
        self.setFitData(newname,fit)
        return
def insertDataset ( self , newdata = None , newname = 'data' , xydata = None , fit = None , replace = False , update = 1 ) : if newdata == None : ek = EkinDataset ( xy = xydata ) else : ek = self . checkDataset ( newdata ) if ek == False : return if self . data . has_key ( newname ) and replace == False : newname = newname + 'a' self . data [ newname ] = ek self . datasets . append ( newname ) self . length = len ( self . datasets ) if fit == None : fit = ek . getFit ( ) self . setFitData ( newname , fit ) return
Insert pre-existing data as a dataset
Insert pre - existing data as a dataset
"""Insert pre-existing data as a dataset""" #print newdata #check for old or bad data
self
newdata
newname
xydata
fit
replace
update