PEATDB/Ekin/Ekin_main.py
def loadProject(self, project=None, data=None, mode=None):
        """Load ekin project and update GUI"""

        if mode == None:
            self.mode = mode ='General'
        if project != None and os.path.exists(project):
            self.E = EkinProject()
            self.E.openProject(project)
            self.E.checkDatasets()
            self.filename = project
            self.path = os.path.abspath(self.filename)
        elif data != None:
            self.E = EkinProject(data=data, mode=mode)
        else:
            self.E = EkinProject(mode=mode)
            self.E.addDataset('data')
        self.data = self.E.data
        self.M = None
        if not hasattr(self.E, 'mode'):
            self.E.mode = mode

        self.project_open = 1
        self.updateDatasetSelector()
        self.plotframe.setProject(self.E)
        self.doModeMenu()
        self.updateMode(setmode=1)
        self.mode_var.set(self.modes.index(mode))
        if hasattr(self.E,'__currentdataset__'):
            self.currentdataset.set(self.E.__currentdataset__)
        elif len(self.E.datasets)>0:
            self.currentdataset.set(self.E.datasets[0])
        if hasattr(self.E, '__displaymultiple__'):
            self.display_multiple.set(self.E.__displaymultiple__)
        if hasattr(self.E, '__nomultiplePlots__'):
            self.no_multiplePlots.set(self.E.__nomultiplePlots__)

        self.updateAll()
        return
Load ekin project and update GUI
Load ekin project and update GUI
Load ekin project and update GUI
def loadProject(self, project=None, data=None, mode=None):
        if mode == None:
            self.mode = mode ='General'
        if project != None and os.path.exists(project):
            self.E = EkinProject()
            self.E.openProject(project)
            self.E.checkDatasets()
            self.filename = project
            self.path = os.path.abspath(self.filename)
        elif data != None:
            self.E = EkinProject(data=data, mode=mode)
        else:
            self.E = EkinProject(mode=mode)
            self.E.addDataset('data')
        self.data = self.E.data
        self.M = None
        if not hasattr(self.E, 'mode'):
            self.E.mode = mode
        self.project_open = 1
        self.updateDatasetSelector()
        self.plotframe.setProject(self.E)
        self.doModeMenu()
        self.updateMode(setmode=1)
        self.mode_var.set(self.modes.index(mode))
        if hasattr(self.E,'__currentdataset__'):
            self.currentdataset.set(self.E.__currentdataset__)
        elif len(self.E.datasets)>0:
            self.currentdataset.set(self.E.datasets[0])
        if hasattr(self.E, '__displaymultiple__'):
            self.display_multiple.set(self.E.__displaymultiple__)
        if hasattr(self.E, '__nomultiplePlots__'):
            self.no_multiplePlots.set(self.E.__nomultiplePlots__)
        self.updateAll()
        return
def loadProject ( self , project = None , data = None , mode = None ) : if mode == None : self . mode = mode = 'General' if project != None and os . path . exists ( project ) : self . E = EkinProject ( ) self . E . openProject ( project ) self . E . checkDatasets ( ) self . filename = project self . path = os . path . abspath ( self . filename ) elif data != None : self . E = EkinProject ( data = data , mode = mode ) else : self . E = EkinProject ( mode = mode ) self . E . addDataset ( 'data' ) self . data = self . E . data self . M = None if not hasattr ( self . E , 'mode' ) : self . E . mode = mode self . project_open = 1 self . updateDatasetSelector ( ) self . plotframe . setProject ( self . E ) self . doModeMenu ( ) self . updateMode ( setmode = 1 ) self . mode_var . set ( self . modes . index ( mode ) ) if hasattr ( self . E , '__currentdataset__' ) : self . currentdataset . set ( self . E . __currentdataset__ ) elif len ( self . E . datasets ) > 0 : self . currentdataset . set ( self . E . datasets [ 0 ] ) if hasattr ( self . E , '__displaymultiple__' ) : self . display_multiple . set ( self . E . __displaymultiple__ ) if hasattr ( self . E , '__nomultiplePlots__' ) : self . no_multiplePlots . set ( self . E . __nomultiplePlots__ ) self . updateAll ( ) return
Load ekin project and update GUI
Load ekin project and update GUI
"""Load ekin project and update GUI"""
self
project
data
mode