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"))
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"))
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"))
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"))
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"))
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"))
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"))
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"))
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"))
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"))
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"))
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"))