Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
d1504703
Commit
d1504703
authored
12 years ago
by
Gigg, Martyn Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Fix issue with ORNL SANS menu opening DGS interface. Refs #6411
parent
f30ae72f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Mantid/scripts/Interface/reduction_application.py
+29
-23
29 additions, 23 deletions
Code/Mantid/scripts/Interface/reduction_application.py
with
29 additions
and
23 deletions
Code/Mantid/scripts/Interface/reduction_application.py
+
29
−
23
View file @
d1504703
...
@@ -122,31 +122,37 @@ class ReductionGUI(QtGui.QMainWindow, ui.ui_reduction_main.Ui_SANSReduction):
...
@@ -122,31 +122,37 @@ class ReductionGUI(QtGui.QMainWindow, ui.ui_reduction_main.Ui_SANSReduction):
# Clean up the widgets that have already been created
# Clean up the widgets that have already been created
self
.
tabWidget
.
clear
()
self
.
tabWidget
.
clear
()
self
.
progress_bar
.
hide
()
self
.
progress_bar
.
hide
()
if
self
.
_instrument
==
''
or
self
.
_instrument
is
None
:
if
IS_IN_MANTIDPLOT
:
from
mantid.kernel
import
ConfigService
c
=
ConfigService
.
Instance
()
facility
=
str
(
c
.
getFacility
())
if
facility
in
INSTRUMENT_DICT
.
keys
():
instr
=
str
(
c
.
getFacility
().
instrument
(
""
))
instr
=
instr
.
replace
(
"
-
"
,
""
)
if
instr
in
INSTRUMENT_DICT
[
facility
].
keys
():
self
.
_instrument
=
instr
# If we still can't find an instrument, show the
# instrument selection dialog
if
self
.
_instrument
==
''
or
self
.
_instrument
is
None
:
self
.
_change_instrument
()
return
else
:
self
.
_change_instrument
()
return
if
self
.
_instrument
==
''
or
self
.
_instrument
is
None
:
if
self
.
_instrument
==
''
or
self
.
_instrument
is
None
:
self
.
close
()
self
.
_change_instrument
()
self
.
_quit_asap
=
True
return
return
# Commented out to solve a bug where setting ARCS as your default
# instrument means you get the DGS interface when clicking ORNL_SANS..
# if self._instrument == '' or self._instrument is None:
# if IS_IN_MANTIDPLOT:
# from mantid.kernel import ConfigService
# c = ConfigService.Instance()
# facility = str(c.getFacility())
# if facility in INSTRUMENT_DICT.keys():
# instr = str(c.getFacility().instrument(""))
# instr = instr.replace("-","")
# if instr in INSTRUMENT_DICT[facility].keys():
# self._instrument = instr
#
# # If we still can't find an instrument, show the
# # instrument selection dialog
# if self._instrument == '' or self._instrument is None:
# self._change_instrument()
# return
# else:
# self._change_instrument()
# return
#
# if self._instrument == '' or self._instrument is None:
# self.close()
# self._quit_asap = True
# return
self
.
_update_file_menu
()
self
.
_update_file_menu
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment