Ticket #6931: run_plotasymmetry.py

File run_plotasymmetry.py, 2.4 KB (added by Raquel Alvarez Banos, 5 years ago)
Line 
1# The following should load runs 15189 - 15191
2ws = PlotAsymmetryByLogValue(FirstRun='MUSR00015189.nxs',LastRun='MUSR00015191.nxs',LogValue='run_number')
3
4# Should load runs 15192, 15193 only
5ws = PlotAsymmetryByLogValue(FirstRun='MUSR00015189.nxs',LastRun='MUSR00015193.nxs',LogValue='run_number')
6
7# Should remove runs 15189, 15190, 15191, and load nothing
8ws = PlotAsymmetryByLogValue(FirstRun='MUSR00015192.nxs',LastRun='MUSR00015193.nxs',LogValue='run_number')
9
10# Should load runs 15189, 15190, 15191 and remove nothing
11ws = PlotAsymmetryByLogValue(FirstRun='MUSR00015189.nxs',LastRun='MUSR00015193.nxs',LogValue='run_number')
12
13# Should remove runs 15189, 15190, 15191, and load nothing
14ws = PlotAsymmetryByLogValue(FirstRun='MUSR00015192.nxs',LastRun='MUSR00015193.nxs',LogValue='run_number')
15
16# Should load runs 15189, 15190, 15191, and remove runs 15192, 15193
17ws = PlotAsymmetryByLogValue(FirstRun='MUSR00015189.nxs',LastRun='MUSR00015191.nxs',LogValue='run_number')
18
19# Should remove everything and load 15189 - 15193 (LogValue changed)
20ws = PlotAsymmetryByLogValue(FirstRun='MUSR00015189.nxs',LastRun='MUSR00015193.nxs',LogValue='sample_magn_field')
21
22# Should remove everything and load 15189 - 15193 (Function changed)
23ws = PlotAsymmetryByLogValue(FirstRun='MUSR00015189.nxs',LastRun='MUSR00015193.nxs',LogValue='run_number',Function='Min')
24
25# Should remove everything and load 15189 - 15193 (Type changed)
26ws = PlotAsymmetryByLogValue(FirstRun='MUSR00015189.nxs',LastRun='MUSR00015193.nxs',LogValue='run_number',Type='Differential')
27
28# Should remove everything and load 15189 - 15193 (Periods changed)
29ws = PlotAsymmetryByLogValue(FirstRun='MUSR00015189.nxs',LastRun='MUSR00015193.nxs',LogValue='run_number',Green=2,Red=1)
30
31# Should remove everything and load 15189 - 15193 (Detector grouping changed)
32ws = PlotAsymmetryByLogValue(FirstRun='MUSR00015189.nxs',LastRun='MUSR00015193.nxs',LogValue='run_number',ForwardSpectra='1-32',BackwardSpectra='33-64')
33
34# Should remove everything and load 15189 - 15193 (Time limits changed)
35ws = PlotAsymmetryByLogValue(FirstRun='MUSR00015189.nxs',LastRun='MUSR00015193.nxs',LogValue='run_number',TimeMin=0.5,TimeMax=1.5)
36
37# Should remove everything and load 15189 - 15193 (DeadTimeCorrections changed)
38ws = PlotAsymmetryByLogValue(FirstRun='MUSR00015189.nxs',LastRun='MUSR00015193.nxs',LogValue='run_number',DeadTimeCorrType='FromRunData')