def _display(masked_workspace): if masked_workspace and AnalysisDataService.doesExist(masked_workspace.name()): if PYQT4: instrument_win = mantidplot.getInstrumentView(masked_workspace.name()) instrument_win.show() else: instrument_win = InstrumentViewPresenter(masked_workspace) instrument_win.container.show()
def _display(masked_workspace): if masked_workspace and AnalysisDataService.doesExist(masked_workspace.name()): if PYQT4: instrument_win = mantidplot.getInstrumentView(masked_workspace.name()) instrument_win.show() else: instrument_win = InstrumentViewPresenter(masked_workspace) instrument_win.view.show()
def view(self, workspace_name = None): """ Opens Mantidplot's InstrumentView displaying the current instrument. This empty instrument created contained in the named workspace (a default name is generated if this the argument is left blank) unless the workspace already exists and then it's contents are displayed @param workspace_name: the name of the workspace to create and/or display """ if workspace_name is None: workspace_name = self._NAME+'_instrument_view' self.load_empty(workspace_name) elif not AnalysisDataService.doesExist(workspace_name): self.load_empty(workspace_name) import mantidplot instrument_win = mantidplot.getInstrumentView(workspace_name) instrument_win.show() return workspace_name
def view(self, workspace_name=None): """ Opens Mantidplot's InstrumentView displaying the current instrument. This empty instrument created contained in the named workspace (a default name is generated if this the argument is left blank) unless the workspace already exists and then it's contents are displayed @param workspace_name: the name of the workspace to create and/or display """ if workspace_name is None: workspace_name = self._NAME + '_instrument_view' self.load_empty(workspace_name) elif not AnalysisDataService.doesExist(workspace_name): self.load_empty(workspace_name) import mantidplot instrument_win = mantidplot.getInstrumentView(workspace_name) instrument_win.show() return workspace_name
def _show_ws_instrument(ws): if not AnalysisDataService.doesExist(ws): return # Do nothing if the instrument view is already displayed #FIXME: this doesn't seem to work 100% yet if False and self._instrument_view is not None and \ self._data_set_viewed == file_name \ and self._instrument_view.isVisible(): # If we want a reload, close the instrument window currently shown if reload: self._instrument_view.close() else: return True self._instrument_view = mantidplot.getInstrumentView(ws, tab) if self._instrument_view is not None: self._instrument_view.show() self._data_set_viewed = file_name return True return False
def _display(masked_workspace): if masked_workspace and AnalysisDataService.doesExist( masked_workspace.name()): instrument_win = mantidplot.getInstrumentView( masked_workspace.name()) instrument_win.show()
def _display(masked_workspace): if masked_workspace and AnalysisDataService.doesExist(masked_workspace.name()): instrument_win = mantidplot.getInstrumentView(masked_workspace.name()) instrument_win.show()