From fcaa6e5e87f4eaed034baf5ee078257052da67cb Mon Sep 17 00:00:00 2001 From: Harry Jeffery <henry.jeffery@stfc.ac.uk> Date: Wed, 27 Aug 2014 09:35:54 +0100 Subject: [PATCH] Place TOF workspaces into a group. Refs #10116. --- Code/Mantid/scripts/Interface/ui/reflectometer/refl_gui.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Code/Mantid/scripts/Interface/ui/reflectometer/refl_gui.py b/Code/Mantid/scripts/Interface/ui/reflectometer/refl_gui.py index d7248463c4c..b1365800fc0 100644 --- a/Code/Mantid/scripts/Interface/ui/reflectometer/refl_gui.py +++ b/Code/Mantid/scripts/Interface/ui/reflectometer/refl_gui.py @@ -918,6 +918,13 @@ class ReflGui(QtGui.QMainWindow, refl_window.Ui_windowRefl): cleanup() else: wlam, wq, th = quick(loadedRun, trans=transmission_ws, theta=angle, tof_prefix="") + + try: + tof_group = mtd["TOF"] + tof_group.add(loadedRun) + except KeyError: + tof_group = GroupWorkspaces(InputWorkspaces=loadedRun, OutputWorkspace="TOF") + if ':' in runno: runno = runno.split(':')[0] if ',' in runno: -- GitLab