-
Notifications
You must be signed in to change notification settings - Fork 0
/
arcsdefault.py
54 lines (45 loc) · 2.02 KB
/
arcsdefault.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#this is a dictionary of all possible things which have to be parsed and dealt with
#that belong to the instrument
def instrumentparameters():
globaldict = dict()
#instrument items
globaldict['Instrument']='ARCS'
globaldict['FilterBadPulses'] = True
#calibration and mask items
globaldict['VanRuns'] = None
globaldict['DetVanIntRangeUnits'] = 'TOF'
globaldict['DetVanIntRangeLow'] = None
globaldict['DetVanIntRangeHigh'] = None
globaldict['SaveProcDetVanFilename'] = 'vanadium.nxs'
globaldict['HardMaskFile'] = None
globaldict['Mask'] = [] #the mask parameters are stored as a list of dictionaries. (check this)
globaldict['NormalizedCalibration'] = False
globaldict['VanPath'] = ''
#data items
globaldict['DataPath'] = ''
globaldict['Runs'] = [] #returns a list of ints
globaldict['IncidentEnergyGuess']= None #number double
globaldict['TimeZeroGuess'] = 0.0 #number double
globaldict['UseIncidentEnergyGuess'] = False
globaldict['Monitor1SpecId'] = 1
globaldict['Monitor2SpecId'] = 2
globaldict['EnergyTransferRange']=None #number double
globaldict['QTransferRange']=None #number double
globaldict['CorrectKiKf']=True #can only use boolean here, not 1 or 0.
globaldict['TimeIndepBackgroundSub']=False
globaldict['TibTofRangeStart']=None
globaldict['TibTofRangeEnd']= None
globaldict['GroupingFile']=None
globaldict['PowderAngleStep'] = 0.5
globaldict['GoniometerMotor']=None #script takes care of default situations.
globaldict['GoniometerMotorOffset']=None
globaldict['GoniometerMotorAxis']=["0,1,0"]
globaldict['GoniometerMotorDirection']=[1]
globaldict['Save']=[]
globaldict['FriendlyName']='ARCS'
globaldict['FriendlyNameLogs'] = ['run_number'] #will get the run_number from the logs, first run number only. (must be in square brackets here)
globaldict['FilterNames']=None
globaldict['FilterMin']=None
globaldict['FilterMax']=None
globaldict['ScanType'] = 'single'
return globaldict