Newer
Older
"""
Script used to start the DGS reduction GUI from MantidPlot
"""
from __future__ import (absolute_import, division, print_function)
from reduction_application import ReductionGUI
reducer = ReductionGUI(instrument_list=["PG3", "NOM", "VULCAN"])
if reducer.setup_layout(load_last=True):
# Set up reduction configuration from previous usage
try:
# Find home dir
mantidconfigdir = os.path.join(homedir, ".mantid")
autopath = os.path.join(mantidconfigdir, 'snspowderreduction.xml')
reducer.open_file(autopath)
except IOError as e:
print("[Error] Unable to load previously reduction setup from file %s.\nReason: %s." % (
autopath, str(e)))
print("[Info] Load earlier reduction setup from auto-saved %s." % (autopath))