Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #10847 Systemtest ReflRedOneAuto with OFFSPEC
- Loading branch information
Harry Jeffery
committed
Apr 7, 2015
1 parent
f4c9c79
commit 5f5166c
Showing
6 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9a1e79b064d7e49518d2be2f149d8eb7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6c0e0411e6d2ffa1202bd8b0a7e95158 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1938df97a5487f11a860ec5f863b46ef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
df6cd830bb7558dff80a59f65ed90811 |
1 change: 1 addition & 0 deletions
1
Code/Mantid/Testing/Data/SystemTest/OFFSPECReflRedOneAuto_good.nxs.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
d96193157e42dec030d3cc9450ed85c3 |
45 changes: 45 additions & 0 deletions
45
Code/Mantid/Testing/SystemTests/tests/analysis/OFFSPECReflRedOneAuto.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] |