Skip to content

Commit

Permalink
Re #7950. Remove barrier to starting reduction gui outside MantidPlot.
Browse files Browse the repository at this point in the history
There are other places with an unguarded import of MantidPlot, but this
one is trivial to fix.
  • Loading branch information
RussellTaylor committed Sep 30, 2013
1 parent 88889ae commit 3bb0f09
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from scripter import BaseScriptElement
from mantid.api import AnalysisDataService

# Check whether we are running in MantidPlot
IS_IN_MANTIDPLOT = False
try:
import mantidplot
IS_IN_MANTIDPLOT = True
from mantid.api import AnalysisDataService
except:
pass

Expand Down Expand Up @@ -34,4 +34,4 @@ def update(self):
if len(iq_plots)>0:
mantidplot.plotSpectrum(iq_plots, 0, True)
except:
raise RuntimeError, "Could not plot resulting output\n %s" % sys.exc_value
raise RuntimeError, "Could not plot resulting output\n %s" % sys.exc_value

0 comments on commit 3bb0f09

Please sign in to comment.