diff --git a/Framework/PythonInterface/test/python/plugins/algorithms/VesuvioResolutionTest.py b/Framework/PythonInterface/test/python/plugins/algorithms/VesuvioResolutionTest.py index b70ebe39c9dfd983ecb3b4dc88849aff69758bec..c7a00e3067b080f788edd3cebdf0dd4548c7b231 100644 --- a/Framework/PythonInterface/test/python/plugins/algorithms/VesuvioResolutionTest.py +++ b/Framework/PythonInterface/test/python/plugins/algorithms/VesuvioResolutionTest.py @@ -1,6 +1,7 @@ import unittest from mantid.simpleapi import * from mantid.api import * +import vesuvio.testing as testing class VesuvioResolutionTest(unittest.TestCase): @@ -8,18 +9,7 @@ class VesuvioResolutionTest(unittest.TestCase): """ Create a sample workspace in time of flight. """ - - tof_ws = CreateSimulationWorkspace(Instrument='Vesuvio', BinParams=[50,0.5,562], UnitX='TOF') - tof_ws = CropWorkspace(tof_ws, StartWorkspaceIndex=135, EndWorkspaceIndex=135) # index one less than spectrum number - tof_ws = ConvertToPointData(tof_ws) - SetInstrumentParameter(tof_ws, ParameterName='t0', ParameterType='Number', Value='0.5') - SetInstrumentParameter(tof_ws, ParameterName='sigma_l1', ParameterType='Number', Value='0.021') - SetInstrumentParameter(tof_ws, ParameterName='sigma_l2', ParameterType='Number', Value='0.023') - SetInstrumentParameter(tof_ws, ParameterName='sigma_tof', ParameterType='Number', Value='0.3') - SetInstrumentParameter(tof_ws, ParameterName='sigma_theta', ParameterType='Number', Value='0.028') - SetInstrumentParameter(tof_ws, ParameterName='hwhm_lorentz', ParameterType='Number', Value='24.0') - SetInstrumentParameter(tof_ws, ParameterName='sigma_gauss', ParameterType='Number', Value='73.0') - self._sample_ws = tof_ws + self._sample_ws = testing.create_test_ws() def test_basic_resolution(self):