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): """