Skip to content
Snippets Groups Projects
Commit f29c2e1b authored by Doucet, Mathieu's avatar Doucet, Mathieu
Browse files

Re #11374 Add system test for REFL

parent 0ed77122
No related branches found
No related tags found
No related merge requests found
79694adb3d0d8a7573e0d9b0ff210edc
43d80c791f44419e242ec2e5ff34ec46
0f14c83d41bad464038778d2dd02424d
#pylint: disable=no-init
import stresstesting
from mantid import *
from mantid.simpleapi import *
class REFLReduction(stresstesting.MantidStressTest):
def runTest(self):
#TODO: The reduction algorithm should not require an absolute path
scaling_factor_file = FileFinder.getFullPath("directBeamDatabaseFall2014_IPTS_11601_2.cfg")
RefLReduction(RunNumbers=[119814],
NormalizationRunNumber=119690,
SignalPeakPixelRange=[154, 166],
SubtractSignalBackground=True,
SignalBackgroundPixelRange=[151, 169],
NormFlag=True,
NormPeakPixelRange=[154, 160],
NormBackgroundPixelRange=[151, 163],
SubtractNormBackground=True,
LowResDataAxisPixelRangeFlag=True,
LowResDataAxisPixelRange=[99, 158],
LowResNormAxisPixelRangeFlag=True,
LowResNormAxisPixelRange=[98, 158],
TOFRange=[29623.0, 42438.0],
IncidentMediumSelected='2InDiamSi',
GeometryCorrectionFlag=False,
QMin=0.005,
QStep=0.01,
AngleOffset=0.009,
AngleOffsetError=0.001,
ScalingFactorFile=scaling_factor_file,
SlitsWidthFlag=True,
OutputWorkspace='reflectivity_119814')
def validate(self):
# Be more tolerant with the output, mainly because of the errors.
# The following tolerance check the errors up to the third digit.
self.tolerance = 0.25
self.disableChecking.append('Instrument')
self.disableChecking.append('Sample')
self.disableChecking.append('SpectraMap')
self.disableChecking.append('Axes')
return "reflectivity_119814", 'REFL_119814_combined_data.nxs'
f7949eee903277da4a6c1fa957500546
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment