From 24228ac8b1a25bcfbdd3b33770fb02040a6a2cae Mon Sep 17 00:00:00 2001 From: Keith Brown Date: Fri, 21 Feb 2014 09:39:57 +0000 Subject: [PATCH] Refs #9041 Fixed bug with coadding workspaces There was a problem where you couldn't comma or colon delimit workspaces in the runs column as the workspaces were overwriting each other. Unrelated to this ticket, but it prevented me from continuing so it had to be fixed in this ticket. --- .../isis_reflectometry/convert_to_wavelength.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Code/Mantid/scripts/Reflectometry/isis_reflectometry/convert_to_wavelength.py b/Code/Mantid/scripts/Reflectometry/isis_reflectometry/convert_to_wavelength.py index eb49e3a7d153..29abe92dfcb2 100644 --- a/Code/Mantid/scripts/Reflectometry/isis_reflectometry/convert_to_wavelength.py +++ b/Code/Mantid/scripts/Reflectometry/isis_reflectometry/convert_to_wavelength.py @@ -45,7 +45,9 @@ def to_workspace(cls, candidate): if mantid.api.AnalysisDataService.doesExist(candidate.strip()): _workspace = mantid.api.AnalysisDataService.retrieve(candidate.strip()) else: - _workspace = msi.Load(Filename=candidate) + ws_name = "_" + str(candidate.strip()) + msi.Load(Filename=candidate, OutputWorkspace=ws_name) + _workspace = mantid.api.AnalysisDataService.retrieve(ws_name) else: raise ValueError("Unknown source item %s" % candidate) return _workspace @@ -55,7 +57,6 @@ def __to_workspace_list(self, source_list): for item in source_list: temp.append(ConvertToWavelength.to_workspace(item)) self.__ws_list = temp - def __init__(self, source): """