Beispiel #1
0
 def retrieve_analysis(self, name): # switchboard "retrieve analysis"
     analysis = namedanalysis.getNamedBulkAnalysis(name)
     self.suppressRetrievalLoop = True
     try:
         self.op_obj.set(analysis.operation, interactive=False)
         if analysis.data.isScalarOutput():
             self.scalar_output_button.set_active(1) # sets output_obj
         elif analysis.data.isAggregateOutput():
             self.aggregate_output_button.set_active(1) # sets output_obj
         else:
             raise ooferror2.ErrPyProgrammingError("Unclassifiable output?")
         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")
     # If this call was triggered by the namedAnalysisChooser,
     # setting the chooser's value is redundant but harmless. If
     # the call was triggered by a script, setting the chooser's
     # value is required.
     self.setNamedAnalysisChooser()
Beispiel #2
0
 def retrieve_analysis(self, name):  # switchboard "retrieve analysis"
     analysis = namedanalysis.getNamedBulkAnalysis(name)
     self.suppressRetrievalLoop = True
     try:
         self.op_obj.set(analysis.operation, interactive=False)
         if analysis.data.isScalarOutput():
             self.scalar_output_button.set_active(1)  # sets output_obj
         elif analysis.data.isAggregateOutput():
             self.aggregate_output_button.set_active(1)  # sets output_obj
         else:
             raise ooferror2.ErrPyProgrammingError("Unclassifiable output?")
         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")
     # If this call was triggered by the namedAnalysisChooser,
     # setting the chooser's value is redundant but harmless. If
     # the call was triggered by a script, setting the chooser's
     # value is required.
     self.setNamedAnalysisChooser()
Beispiel #3
0
def _deleteAnalysis(menuitem, name):
    namedanalysis.getNamedBulkAnalysis(name).destroy()
    switchboard.notify("named analyses changed")
Beispiel #4
0
def _deleteAnalysis(menuitem, name):
    namedanalysis.getNamedBulkAnalysis(name).destroy()
    switchboard.notify("named analyses changed")