PEATDB/Ekin/ModelDesign.py
def loadModelsFile(self, filename=None):
        """Load a dict of models, the pickled format from Ekin"""
        if filename==None:
            filename=tkFileDialog.askopenfilename(defaultextension='.dict',
                                              initialdir=os.getcwd(),
                                              filetypes=[("dict files","*.dict"),
                                                         ("All files","*.*")],
                                              parent=self.main)
        if filename:
            self.modelsdict = pickle.load(open(filename,'r'))
            self.updateModelSelector()
            self.filename = filename
            self.updateFileLabel()
        return
Load a dict of models, the pickled format from Ekin
Load a dict of models, the pickled format from Ekin
Load a dict of models the pickled format from Ekin
def loadModelsFile(self, filename=None):
        if filename==None:
            filename=tkFileDialog.askopenfilename(defaultextension='.dict',
                                              initialdir=os.getcwd(),
                                              filetypes=[("dict files","*.dict"),
                                                         ("All files","*.*")],
                                              parent=self.main)
        if filename:
            self.modelsdict = pickle.load(open(filename,'r'))
            self.updateModelSelector()
            self.filename = filename
            self.updateFileLabel()
        return
def loadModelsFile ( self , filename = None ) : if filename == None : filename = tkFileDialog . askopenfilename ( defaultextension = '.dict' , initialdir = os . getcwd ( ) , filetypes = [ ( "dict files" , "*.dict" ) , ( "All files" , "*.*" ) ] , parent = self . main ) if filename : self . modelsdict = pickle . load ( open ( filename , 'r' ) ) self . updateModelSelector ( ) self . filename = filename self . updateFileLabel ( ) return
Load a dict of models, the pickled format from Ekin
Load a dict of models the pickled format from Ekin
"""Load a dict of models, the pickled format from Ekin"""
self
filename