Skip to content

Commit

Permalink
Refs #10847 Systemtest ReflRedOneAuto with OFFSPEC
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Apr 7, 2015
1 parent f4c9c79 commit 5f5166c
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 0 deletions.
@@ -0,0 +1 @@
9a1e79b064d7e49518d2be2f149d8eb7
@@ -0,0 +1 @@
6c0e0411e6d2ffa1202bd8b0a7e95158
@@ -0,0 +1 @@
1938df97a5487f11a860ec5f863b46ef
@@ -0,0 +1 @@
df6cd830bb7558dff80a59f65ed90811
@@ -0,0 +1 @@
d96193157e42dec030d3cc9450ed85c3
@@ -0,0 +1,45 @@
#pylint: disable=no-init,invalid-name
"""
This system test verifies that OFFSPEC data is processed correctly by
ReflectometryReductionOneAuto
"""

import stresstesting
from mantid.simpleapi import *

class OFFSPECReflRedOneAuto(stresstesting.MantidStressTest):
def runTest(self):
offspec75 = Load("OFFSPEC00027575.nxs") #th=0.35
offspec76 = Load("OFFSPEC00027576.nxs") #th=1.00
offspec78 = Load("OFFSPEC00027578.nxs") #th=1.70
offspec85 = Load("OFFSPEC00027585.nxs") #transmission run

#Process using ReflectometryReductionOneAuto
ivq_75, __, __ = ReflectometryReductionOneAuto(
offspec75,
ThetaIn=0.35,
FirstTransmissionRun=offspec85)

ivq_76, __, __ = ReflectometryReductionOneAuto(
offspec76,
ThetaIn=1.00,
FirstTransmissionRun=offspec85)

ivq_78, __, __ = ReflectometryReductionOneAuto(
offspec78,
ThetaIn=1.70,
FirstTransmissionRun=offspec85)

ivq_75_76, __ = Stitch1D(ivq_75, ivq_76, Params="1e-3")
ivq_75_76_78, __ = Stitch1D(ivq_75_76, ivq_78, Params="0,1e-3,0.08")
return True

def validate(self):
return ("ivq_75_76_78","OFFSPECReflRedOneAuto_good.nxs")

def requiredFiles(self):
return ["OFFSPEC00027575.nxs",
"OFFSPEC00027576.nxs",
"OFFSPEC00027578.nxs",
"OFFSPEC00027585.nxs",
"OFFSPECReflRedOneAuto_good.nxs"]

0 comments on commit 5f5166c

Please sign in to comment.