Exemple #1
0
def saveAnalysisDef(dfile, analysisname):
    analysis = namedanalysis.getNamedAnalysis(analysisname)
    dfile.startCmd(mainmenu.OOF.LoadData.NamedAnalysis)
    dfile.argument('name', analysisname)
    dfile.argument('operation', analysis.operation)
    dfile.argument('data', analysis.data)
    dfile.argument('domain', analysis.domain)
    dfile.argument('sampling', analysis.sampling)
    dfile.endCmd()
Exemple #2
0
def saveAnalysisDef(dfile, analysisname):
    analysis = namedanalysis.getNamedAnalysis(analysisname)
    dfile.startCmd(mainmenu.OOF.LoadData.NamedAnalysis)
    dfile.argument('name', analysisname)
    dfile.argument('operation', analysis.operation)
    dfile.argument('data', analysis.data)
    dfile.argument('domain', analysis.domain)
    dfile.argument('sampling', analysis.sampling)
    dfile.endCmd()
Exemple #3
0
 def retrieveCB(self, gtkobj, name):  # retrieve named analysis
     if name:  # can be empty
         analysis = namedanalysis.getNamedAnalysis(name)
         self.suppressRetrievalLoop = True
         try:
             self.op_obj.set(analysis.operation, interactive=False)
             self.output_obj.set_value(analysis.data)
             self.domain_obj.set(analysis.domain, interactive=False)
             self.sample_obj.set(analysis.sampling, interactive=False)
         finally:
             self.suppressRetrievalLoop = False
         gtklogger.checkpoint("retrieved named analysis")
Exemple #4
0
def _deleteAnalysis(menuitem, name):
    namedanalysis.getNamedAnalysis(name).destroy()
    switchboard.notify("named analyses changed")