Skip to content

Commit

Permalink
Set instrument at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonPiccardoSelg committed Oct 3, 2017
1 parent d783c7a commit 50de299
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/Interface/ui/sans_isis/sans_data_processor_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

from mantid.kernel import (Logger, config)
from mantidqtpython import MantidQt

try:
from mantidplot import *
canMantidPlot = True
Expand Down Expand Up @@ -236,6 +237,9 @@ def _setup_main_tab(self):
instrument_name = SANSInstrument.to_string(self._instrument)
self.data_processor_table.setInstrumentList(SANSDataProcessorGui.INSTRUMENTS, instrument_name)

if instrument_name:
self._set_mantid_instrument(instrument_name)

# The widget will emit a 'runAsPythonScript' signal to run python code
self.data_processor_table.runAsPythonScript.connect(self._run_python_code)
self.data_processor_table.processButtonClicked.connect(self._processed_clicked)
Expand Down

0 comments on commit 50de299

Please sign in to comment.