From de21e1119044951af9f1832c23d2025ca48beefc Mon Sep 17 00:00:00 2001 From: Elliot Oram <Elliot.Oram@stfc.ac.uk> Date: Mon, 4 Apr 2016 09:35:20 +0100 Subject: [PATCH] Use vesuvio.testing in VesuvioResolutionTest Refs #15786 --- .../plugins/algorithms/VesuvioResolutionTest.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Framework/PythonInterface/test/python/plugins/algorithms/VesuvioResolutionTest.py b/Framework/PythonInterface/test/python/plugins/algorithms/VesuvioResolutionTest.py index b70ebe39c9d..c7a00e3067b 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): -- GitLab