-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from mantidproject/0_add_additional_system_test
Add system test to compare old with new results and disable failing tests
- Loading branch information
Showing
14 changed files
with
383 additions
and
34 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
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,120 @@ | ||
import numpy as np | ||
|
||
|
||
class LoadVesuvioBackParameters: | ||
def __init__(self, ipFilesPath): | ||
self.ipfile = ipFilesPath / "ip2019.par" | ||
|
||
runs = "43066-43076" # 77K # The numbers of the runs to be analysed | ||
empty_runs = ( | ||
"41876-41923" # 77K # The numbers of the empty runs to be subtracted | ||
) | ||
spectra = "3-134" # Spectra to be analysed | ||
mode = "DoubleDifference" | ||
subEmptyFromRaw = True # Flag to control wether empty ws gets subtracted from raw | ||
scaleEmpty = 1 # None or scaling factor | ||
scaleRaw = 1 | ||
|
||
|
||
class LoadVesuvioFrontParameters: | ||
def __init__(self, ipFilesPath): | ||
self.ipfile = ipFilesPath / "ip2018_3.par" | ||
|
||
runs = "43066-43076" # 100K # The numbers of the runs to be analysed | ||
empty_runs = ( | ||
"43868-43911" # 100K # The numbers of the empty runs to be subtracted | ||
) | ||
spectra = "144-182" # Spectra to be analysed | ||
mode = "SingleDifference" | ||
subEmptyFromRaw = False # Flag to control wether empty ws gets subtracted from raw | ||
scaleEmpty = 1 # None or scaling factor | ||
scaleRaw = 1 | ||
|
||
|
||
class GeneralInitialConditions: | ||
transmission_guess = 0.8537 # Experimental value from VesuvioTransmission | ||
multiple_scattering_order, number_of_events = 2, 1.0e5 | ||
vertical_width, horizontal_width, thickness = 0.1, 0.1, 0.001 # Expressed in meters | ||
|
||
|
||
class BackwardInitialConditions(GeneralInitialConditions): | ||
def __init__(self, ipFilesPath): | ||
self.InstrParsPath = ipFilesPath / "ip2018_3.par" | ||
|
||
HToMassIdxRatio = 19.0620008206 # Set to zero or None when H is not present | ||
massIdx = 0 | ||
masses = np.array([12, 16, 27]) | ||
initPars = np.array([1, 12, 0.0, 1, 12, 0.0, 1, 12.5, 0.0]) | ||
bounds = np.array( | ||
[ | ||
[0, np.nan], | ||
[8, 16], | ||
[-3, 1], | ||
[0, np.nan], | ||
[8, 16], | ||
[-3, 1], | ||
[0, np.nan], | ||
[11, 14], | ||
[-3, 1], | ||
] | ||
) | ||
constraints = () | ||
noOfMSIterations = 3 # 4 | ||
firstSpec = 3 # 3 | ||
lastSpec = 134 # 134 | ||
maskedSpecAllNo = np.array([18, 34, 42, 43, 59, 60, 62, 118, 119, 133]) | ||
MSCorrectionFlag = True | ||
GammaCorrectionFlag = False | ||
tofBinning = "275.,1.,420" # Binning of ToF spectra | ||
maskTOFRange = None | ||
runHistData = True | ||
normVoigt = False | ||
|
||
|
||
class ForwardInitialConditions(GeneralInitialConditions): | ||
def __init__(self, ipFilesPath): | ||
self.InstrParsPath = ipFilesPath / "ip2018_3.par" | ||
|
||
masses = np.array([1.0079, 12, 16, 27]) | ||
initPars = np.array([1, 4.7, 0, 1, 12.71, 0.0, 1, 8.76, 0.0, 1, 13.897, 0.0]) | ||
bounds = np.array( | ||
[ | ||
[0, np.nan], | ||
[3, 6], | ||
[-3, 1], | ||
[0, np.nan], | ||
[12.71, 12.71], | ||
[-3, 1], | ||
[0, np.nan], | ||
[8.76, 8.76], | ||
[-3, 1], | ||
[0, np.nan], | ||
[13.897, 13.897], | ||
[-3, 1], | ||
] | ||
) | ||
constraints = () | ||
noOfMSIterations = 3 # 4 | ||
firstSpec = 144 # 144 | ||
lastSpec = 182 # 182 | ||
MSCorrectionFlag = True | ||
GammaCorrectionFlag = True | ||
maskedSpecAllNo = np.array([173, 174, 179]) | ||
tofBinning = "110,1,430" # Binning of ToF spectra | ||
maskTOFRange = None | ||
runHistData = True | ||
normVoigt = False | ||
|
||
|
||
class YSpaceFitInitialConditions: | ||
anything = True | ||
|
||
|
||
class UserScriptControls: | ||
runRoutine = True | ||
procedure = "FORWARD" # Options: None, "BACKWARD", "FORWARD", "JOINT" | ||
fitInYSpace = None # Options: None, "BACKWARD", "FORWARD", "JOINT" | ||
|
||
|
||
class BootstrapInitialConditions: | ||
runBootstrap = False |
Binary file not shown.
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
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
Binary file added
BIN
+11.3 MB
...m_tests/test_config/experiments/test_expr_comp/input_ws/test_expr_comp_empty_backward.nxs
Binary file not shown.
Binary file added
BIN
+6.3 MB
...em_tests/test_config/experiments/test_expr_comp/input_ws/test_expr_comp_empty_forward.nxs
Binary file not shown.
Binary file added
BIN
+9.7 MB
...tem_tests/test_config/experiments/test_expr_comp/input_ws/test_expr_comp_raw_backward.nxs
Binary file not shown.
Binary file added
BIN
+5.34 MB
...stem_tests/test_config/experiments/test_expr_comp/input_ws/test_expr_comp_raw_forward.nxs
Binary file not shown.
Binary file added
BIN
+2.3 MB
...m_tests/test_config/experiments/test_expr_comp/output_files/spec_144-182_iter_3_GC_MS.npz
Binary file not shown.
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
Oops, something went wrong.