PEATDB/Ekin/Ekin_main.py
def insertMultipleDatasets(self, newdata, overwrite=None):
        """Adds multiple datasets at once from a dict of ekin datasets"""
        if newdata != None:
            for name in newdata.keys():
                if name in self.E.datasets:
                    if overwrite == 1:
                        self.deleteDataset(name, confirm=None, update=False)
                        self.insertDataset(newdata[name], name, update=None)
                else:
                    self.insertDataset(newdata[name], name, update=None)
        else:
            return
        if name in self.E.datasets:
            self.currentdataset.set(name)
        else:
            self.currentdataset.set(self.E.datasets[0])
        self.updateAll()
        return
Adds multiple datasets at once from a dict of ekin datasets
Adds multiple datasets at once from a dict of ekin datasets
Adds multiple datasets at once from a dict of ekin datasets
def insertMultipleDatasets(self, newdata, overwrite=None):
        if newdata != None:
            for name in newdata.keys():
                if name in self.E.datasets:
                    if overwrite == 1:
                        self.deleteDataset(name, confirm=None, update=False)
                        self.insertDataset(newdata[name], name, update=None)
                else:
                    self.insertDataset(newdata[name], name, update=None)
        else:
            return
        if name in self.E.datasets:
            self.currentdataset.set(name)
        else:
            self.currentdataset.set(self.E.datasets[0])
        self.updateAll()
        return
def insertMultipleDatasets ( self , newdata , overwrite = None ) : if newdata != None : for name in newdata . keys ( ) : if name in self . E . datasets : if overwrite == 1 : self . deleteDataset ( name , confirm = None , update = False ) self . insertDataset ( newdata [ name ] , name , update = None ) else : self . insertDataset ( newdata [ name ] , name , update = None ) else : return if name in self . E . datasets : self . currentdataset . set ( name ) else : self . currentdataset . set ( self . E . datasets [ 0 ] ) self . updateAll ( ) return
Adds multiple datasets at once from a dict of ekin datasets
Adds multiple datasets at once from a dict of ekin datasets
"""Adds multiple datasets at once from a dict of ekin datasets"""
self
newdata
overwrite