Ejemplo n.º 1
0
 def exportResults(self, export_format, export_path):
     """ export mapping scheme leaves as CSV """
     self.ui.statusbar.showMessage(get_ui_string("app.status.exposure.exported"))
     # invoke asynchronously
     self.project.set_export(export_format, export_path)        
     invoke_async(get_ui_string("app.status.processing"), self.project.export_data)
     self.ui.statusbar.showMessage(get_ui_string("app.status.exposure.exported"))
Ejemplo n.º 2
0
 def createEmptyMS(self):
     """ build an empty mapping scheme tree for user to manipulate manually """
     self.ui.statusbar.showMessage(get_ui_string("app.status.ms.processing"))
     # invoke asynchronously 
     invoke_async(get_ui_string("app.status.processing"), self.project.create_empty_ms)
     self.visualizeMappingScheme(self.project.ms)
     self.ui.statusbar.showMessage(get_ui_string("app.status.ms.created"))
Ejemplo n.º 3
0
 def loadMS(self, path):
     self.ui.statusbar.showMessage(
         get_ui_string("app.status.ms.processing"))
     # invoke asynchronously
     invoke_async(get_ui_string("app.status.processing"),
                  self.project.load_ms, path)
     self.visualizeMappingScheme(self.project.ms)
     self.ui.statusbar.showMessage(get_ui_string("app.status.ms.created"))
Ejemplo n.º 4
0
 def exportMS(self, path, format):
     """ export mapping scheme leaves as CSV """
     self.ui.statusbar.showMessage(
         get_ui_string("app.status.ms.processing"))
     # invoke asynchronously
     invoke_async(get_ui_string("app.status.processing"),
                  self.project.export_ms, path, format)
     self.ui.statusbar.showMessage(get_ui_string("app.status.ms.exported"))
Ejemplo n.º 5
0
 def createEmptyMS(self):
     """ build an empty mapping scheme tree for user to manipulate manually """
     self.ui.statusbar.showMessage(
         get_ui_string("app.status.ms.processing"))
     # invoke asynchronously
     invoke_async(get_ui_string("app.status.processing"),
                  self.project.create_empty_ms)
     self.visualizeMappingScheme(self.project.ms)
     self.ui.statusbar.showMessage(get_ui_string("app.status.ms.created"))
Ejemplo n.º 6
0
 def exportResults(self, export_format, export_path):
     """ export mapping scheme leaves as CSV """
     self.ui.statusbar.showMessage(
         get_ui_string("app.status.exposure.exported"))
     # invoke asynchronously
     self.project.set_export(export_format, export_path)
     invoke_async(get_ui_string("app.status.processing"),
                  self.project.export_data)
     self.ui.statusbar.showMessage(
         get_ui_string("app.status.exposure.exported"))
Ejemplo n.º 7
0
 def buildMappingScheme(self):
     """ build mapping scheme with given data """
     self.ui.statusbar.showMessage(get_ui_string("app.status.ms.processing"))
     # invoke asynchronously
     try:
         invoke_async(get_ui_string("app.status.processing"), self.project.build_ms)
     except SIDDException as err:
         # different error message used in this case
         raise SIDDUIException(get_ui_string('project.error.sampling', str(err)))
     
     self.visualizeMappingScheme(self.project.ms)
     self.ui.statusbar.showMessage(get_ui_string("app.status.ms.created"))
Ejemplo n.º 8
0
    def buildMappingScheme(self):
        """ build mapping scheme with given data """
        self.ui.statusbar.showMessage(
            get_ui_string("app.status.ms.processing"))
        # invoke asynchronously
        try:
            invoke_async(get_ui_string("app.status.processing"),
                         self.project.build_ms)
        except SIDDException as err:
            # different error message used in this case
            raise SIDDUIException(
                get_ui_string('project.error.sampling', str(err)))

        self.visualizeMappingScheme(self.project.ms)
        self.ui.statusbar.showMessage(get_ui_string("app.status.ms.created"))
Ejemplo n.º 9
0
 def verifyInputs(self):
     """ perform checks on current dataset provided and update UI accordingly """                
     # remove result
     self.tab_result.closeResult()
     
     # verify current dataset
     self.ui.statusbar.showMessage(get_ui_string("app.status.ms.processing"))
     # invoke asynchronously 
     invoke_async(get_ui_string("app.status.processing"), self.project.verify_data)       
     self.tab_datainput.showVerificationResults()
     
     # always allow mapping scheme
     self.ui.mainTabs.setTabEnabled(self.TAB_MS, True)
     self.ui.mainTabs.setTabEnabled(self.TAB_MOD, True)
     self.ui.actionMapping_Schemes.setEnabled(True)
     self.ui.actionResult.setEnabled(True)      
     self.ui.actionProcessing_Options.setEnabled(True)   
     
     self.ui.statusbar.showMessage(get_ui_string("app.status.input.verified"))       
Ejemplo n.º 10
0
    def verifyInputs(self):
        """ perform checks on current dataset provided and update UI accordingly """
        # remove result
        self.tab_result.closeResult()

        # verify current dataset
        self.ui.statusbar.showMessage(
            get_ui_string("app.status.ms.processing"))
        # invoke asynchronously
        invoke_async(get_ui_string("app.status.processing"),
                     self.project.verify_data)
        self.tab_datainput.showVerificationResults()

        # always allow mapping scheme
        self.ui.mainTabs.setTabEnabled(self.TAB_MS, True)
        self.ui.mainTabs.setTabEnabled(self.TAB_MOD, True)

        self.ui.actionMapping_Schemes.setEnabled(True)
        self.ui.actionResult.setEnabled(True)
        self.ui.actionProcessing_Options.setEnabled(True)

        self.ui.statusbar.showMessage(
            get_ui_string("app.status.input.verified"))
Ejemplo n.º 11
0
 def loadMS(self, path):
     self.ui.statusbar.showMessage(get_ui_string("app.status.ms.processing"))
     # invoke asynchronously       
     invoke_async(get_ui_string("app.status.processing"), self.project.load_ms, path)
     self.visualizeMappingScheme(self.project.ms)
     self.ui.statusbar.showMessage(get_ui_string("app.status.ms.created"))
Ejemplo n.º 12
0
 def exportMS(self, path, format):
     """ export mapping scheme leaves as CSV """
     self.ui.statusbar.showMessage(get_ui_string("app.status.ms.processing"))
     # invoke asynchronously       
     invoke_async(get_ui_string("app.status.processing"), self.project.export_ms, path, format)
     self.ui.statusbar.showMessage(get_ui_string("app.status.ms.exported"))