Ticket #11494: verify11494.py

File verify11494.py, 1.9 KB (added by Wenduo Zhou, 6 years ago)
Line 
1# create table workspace and parent log workspace
2LoadSpiceAscii(Filename='HB2A_exp0231_scan0001.dat',
3      IntegerSampleLogNames="Sum of Counts, scan, mode, experiment_number",
4      FloatSampleLogNames="samplemosaic, preset_value, Full Width Half-Maximum, Center of Mass",
5      DateAndTimeLog='date,MM/DD/YYYY,time,HH:MM:SS AM',
6      OutputWorkspace='Exp0231DataTable',
7      RunInfoWorkspace='Exp0231ParentWS')
8
9# load for HB2A
10ConvertSpiceDataToRealSpace(InputWorkspace='Exp0231DataTable',
11      RunInfoWorkspace='Exp0231ParentWS',
12      OutputWorkspace='Exp0231DataMD',
13      OutputMonitorWorkspace='Exp0231MonitorMD')
14
15# Get raw counts of DetID = 20 out
16ws = GetSpiceDataRawCountsFromMD(InputWorkspace='Exp0231DataMD', MonitorWorkspace='Exp0231MonitorMD', 
17    OutputWorkspace='Det20Counts2Theta', DetectorID=20)
18   
19# Get raw counts of DetID = 20 out
20ws = GetSpiceDataRawCountsFromMD(InputWorkspace='Exp0231DataMD', MonitorWorkspace='Exp0231MonitorMD',  Mode='Pt.',
21    Pt=10, OutputWorkspace='Pt10Counts')
22   
23# Get raw counts of DetID = 20 out
24ws = GetSpiceDataRawCountsFromMD(InputWorkspace='Exp0231DataMD', MonitorWorkspace='Exp0231MonitorMD', 
25    OutputWorkspace='Det20CountsPt', DetectorID=20, XLabel='Pt.')
26   
27 # Get raw counts of DetID = 20 out
28ws = GetSpiceDataRawCountsFromMD(InputWorkspace='Exp0231DataMD', MonitorWorkspace='Exp0231MonitorMD', 
29    Mode='Sample Log', 
30    OutputWorkspace='TwoTheta_Pt', SampleLogName='2theta')
31   
32# Get raw counts of DetID = 20 out
33ws = GetSpiceDataRawCountsFromMD(InputWorkspace='Exp0231DataMD', MonitorWorkspace='Exp0231MonitorMD', 
34    Mode='Sample Log', 
35    OutputWorkspace='Vti_Pt', SampleLogName='vti')
36   
37# Get raw counts of DetID = 20 out
38ws = GetSpiceDataRawCountsFromMD(InputWorkspace='Exp0231DataMD', MonitorWorkspace='Exp0231MonitorMD', 
39    Mode='Sample Log', 
40    OutputWorkspace='Sorb_Sorb', SampleLogName='sorb', XLabel='sorb')
41   
42   
43