Skip to content

Commit

Permalink
Remove setting/unsetting facility unecessarily
Browse files Browse the repository at this point in the history
In MantidPlot, when the indirect interface is open, it causes a lot of flicking and random segfaults in the usage tests
Refs #11038
  • Loading branch information
martyngigg committed Feb 7, 2015
1 parent 6640342 commit 423b451
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -986,14 +986,11 @@ def _analyser_reflection(self, workspace):
try:
short_name = config.getFacility().instrument(inst).shortName().lower()
except RuntimeError:
original_facility = config['default.facility']
for facility in config.getFacilities():
config['default.facility'] = facility.name()
try:
short_name = config.getFacility().instrument(inst).shortName().lower()
short_name = facility.instrument(inst).shortName().lower()
except RuntimeError:
pass
config['default.facility'] = original_facility

if short_name == '':
raise RuntimeError('Cannot find instrument "%s" in any facility' % str(inst))
Expand Down

0 comments on commit 423b451

Please sign in to comment.