Files
x11ma/script/test/otf_post_mortem.py
2019-10-06 08:31:48 +02:00

210 lines
8.4 KiB
Python

#otf(start, end, time, delay = 0.0, mode = None, offset = None, alpha = None, name = None, folder = 'TEST')
#FOLDER = 'XAS/20190930/o_XAS_NCM111'
#otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='sample2_noncoated_LCO_LPS-Discharge-Survey', folder='data/2019_10/20191005')
#otf(start=700, end=740, time=2, delay=10.0, mode='LINEAR', alpha = 0.0, offset=0.0, name='postmortem_sample', folder='data/2019_10/postmortem/holder1/20191004')
#otf(start=700, end=740, time=2, delay=10.0, mode='LINEAR', alpha = 0.0, offset=0.0, name='postmortem_sample', folder='data/2019_10/postmortem/holder1/20191004')
#otf(start=845, end=885, time=2, delay=10.0, mode='LINEAR', alpha = 0.0, offset=0.0, name='postmortem_sample', folder='data/2019_10/postmortem/holder1/20191004')
#otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='s3_non_coat_LCO_LPS-Charge-Survey', folder='data/2019_10/20191005')
#caput('X11MA-KEI10:RANGE', 7)
#caput('X11MA-KEI11:RANGE', 8)
#caput('X11MA-KEI12:RANGE', 10)
#otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='postmortem_sample', folder='data/2019_10/postmortem/holder1/20191004')
otf(start=200, end=220, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='s1_coated_LCO_C-reference-Nb', folder='data/2019_10/postmortem')
'''# sample LCO
# scan Nb
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
nr_loops=3
loop_count = 0
while loop_count < nr_loops:
otf(start=200, end=220, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='s1_coated_LCO_C-reference-Nb', folder='data/2019_10/postmortem')
loop_count = loop_count + 1
# scans C
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
nr_loops=3
loop_count = 0
while loop_count < nr_loops:
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='s1_coated_LCO_C-reference-C', folder='data/2019_10/postmortem')
loop_count = loop_count + 1
# scans Survey
caput('X11MA-KEI10:RANGE', 6)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
nr_loops=1
loop_count = 0
while loop_count < nr_loops:
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='s1_coated_LCO_C-reference-Survey', folder='data/2019_10/postmortem')
loop_count = loop_count + 1
# scans Co
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
nr_loops=2
loop_count = 0
while loop_count < nr_loops:
otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='s1_coated_LCO_C-reference-Co', folder='data/2019_10/postmortem')
loop_count = loop_count + 1
# scans O
caput('X11MA-KEI10:RANGE', 6)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
nr_loops=2
loop_count = 0
while loop_count < nr_loops:
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='s1_coated_LCO_C-reference-O', folder='data/2019_10/postmortem')
loop_count = loop_count + 1
#'''
'''# sample NCM111
# scans C
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
nr_loops=3
loop_count = 0
while loop_count < nr_loops:
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='sample1_NCM111_LPS-Discharge-C', folder='data/2019_10/postmortem')
loop_count = loop_count + 1
# scans Survey
caput('X11MA-KEI10:RANGE', 6)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
nr_loops=2
loop_count = 0
while loop_count < nr_loops:
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='sample1_NCM111_LPS-Discharge-Survey', folder='data/2019_10/postmortem')
loop_count = loop_count + 1
# scans Ni
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
nr_loops=2
loop_count = 0
while loop_count < nr_loops:
otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='sample1_NCM111_LPS-Discharge-Ni', folder='data/2019_10/postmortem')
loop_count = loop_count + 1
# scans Co
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
nr_loops=2
loop_count = 0
while loop_count < nr_loops:
otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='sample1_NCM111_LPS-Discharge-Co', folder='data/2019_10/20191005')
loop_count = loop_count + 1
# scans Mn
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
nr_loops=3
loop_count = 0
while loop_count < nr_loops:
otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='sample1_NCM111_LPS-Discharge-Mn', folder='data/2019_10/20191005')
loop_count = loop_count + 1
# scans O
caput('X11MA-KEI10:RANGE', 6)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
nr_loops=2
loop_count = 0
while loop_count < nr_loops:
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='sample1_NCM111_LPS-Discharge-O', folder='data/2019_10/20191005')
loop_count = loop_count + 1
'''
#otf(start=500, end=1000, time=4, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='s1_NaSbS_pellet-Survey', folder='data/2019_10/postmortem')
#otf(start=750, end=850, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='s1_NaSbS_pellet-Sb', folder='data/2019_10/postmortem')
#otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='test_NaMFA_NSS_pristine-C', folder='data/2019_10/postmortem')
#otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='test_NaMFA_NSS_pristine-Survey', folder='data/2019_10/postmortem')
#otf(start=750, end=850, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='test_NaMFA_NSS_pristine-Sb', folder='data/2019_10/postmortem')
#otf(start=700, end=740, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='test_NaMFA_NSS_pristine-Fe', folder='data/2019_10/postmortem')
#otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='test_NaMFA_NSS_pristine-Mn', folder='data/2019_10/postmortem')
#otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='test_NaMFA_NSS_pristine-O', folder='data/2019_10/postmortem')
#'''# sample NaMFA - NSS
# scans C
'''caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 7)
caput('X11MA-KEI12:RANGE', 10)
nr_loops=3
loop_count = 0
while loop_count < nr_loops:
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='s4_NaMFA_NSS_discharge-C', folder='data/2019_10/postmortem')
loop_count = loop_count + 1
# scans Survey
caput('X11MA-KEI10:RANGE', 6)
caput('X11MA-KEI11:RANGE', 7)
caput('X11MA-KEI12:RANGE', 9)
nr_loops=2
loop_count = 0
while loop_count < nr_loops:
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='s4_NaMFA_NSS_discharge-Survey', folder='data/2019_10/postmortem')
loop_count = loop_count + 1
# scans Sb
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
nr_loops=6
loop_count = 0
while loop_count < nr_loops:
otf(start=750, end=850, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='s4_NaMFA_NSS_discharge-Sb', folder='data/2019_10/postmortem')
loop_count = loop_count + 1
# scans Fe
caput('X11MA-KEI10:RANGE', 7)
#caput('X11MA-KEI11:RANGE', 7)
caput('X11MA-KEI12:RANGE', 9)
nr_loops=3
loop_count = 0
while loop_count < nr_loops:
otf(start=700, end=740, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='s4_NaMFA_NSS_discharge-Fe', folder='data/2019_10/postmortem')
loop_count = loop_count + 1
# scans Mn
caput('X11MA-KEI10:RANGE', 7)
#caput('X11MA-KEI11:RANGE', 7)
caput('X11MA-KEI12:RANGE', 9)
nr_loops=6
loop_count = 0
while loop_count < nr_loops:
otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='s4_NaMFA_NSS_discharge-Mn', folder='data/2019_10/postmortem')
loop_count = loop_count + 1
# scans O/Sb
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 7)
caput('X11MA-KEI12:RANGE', 9)
nr_loops=2
loop_count = 0
while loop_count < nr_loops:
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='s4_NaMFA_NSS_discharge-O', folder='data/2019_10/postmortem')
loop_count = loop_count + 1
'''