Script execution

This commit is contained in:
gac-x03da
2023-05-06 19:02:39 +02:00
parent b8d139f369
commit ba910f42df
@@ -52,36 +52,43 @@ REFERENCE_POSITION = {'X': 2.30,'Y': 7.60, 'Z': 114.00, 'Theta': -9., 'Tilt': -2
SAMPLE_POSITION = {'X': 2.30,'Y': 3.00, 'Z': 114.00, 'Theta': -9., 'Tilt': -2.0, 'Phi': -90.}
# DEFINE THE REGIONS
# -- Region A @ 578 eV (G2 1200)
REGION_A1 = {'name': 'MoEF', 'ephot': 578., 'elo': 572., 'ehi':575., 'estep': 0.02, 'epass': 20., 'tstep': 2.0, 'iter': 1, 'cis': False, 'position': 'reference'}
REGION_A2 = {'name': 'In4d', 'elo': 551., 'ehi':559., 'estep':0.02, 'epass': 20., 'tstep': 0.5, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_A3 = {'name': 'As3d', 'elo': 529., 'ehi':535., 'estep':0.02, 'epass': 20., 'tstep': 0.5, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_A4 = {'name': 'In3d', 'elo': 118., 'ehi':133., 'estep':0.02, 'epass': 20., 'tstep': 0.1, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_A5 = {'name': 'Al2p', 'elo': 496., 'ehi':503., 'estep':0.02, 'epass': 20., 'tstep': 0.1, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_A6 = {'name': 'Survey', 'elo': 468., 'ehi':578., 'estep':0.10, 'epass': 20., 'tstep': 0.1, 'iter': 1, 'cis': False, 'position': 'sample'}
# -- Region A @ 650 eV (G2 1200)
REGION_A1 = {'name': 'MoEF', 'ephot': 650., 'elo': 642., 'ehi':645.5, 'estep':0.02, 'epass': 20., 'tstep': 2.0, 'iter': 1, 'cis': False, 'position': 'reference'}
REGION_A2 = {'name': 'In4d', 'elo': 623., 'ehi':631., 'estep':0.02, 'epass': 20., 'tstep': 1.0, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_A3 = {'name': 'As3d', 'elo': 600., 'ehi':607., 'estep':0.02, 'epass': 20., 'tstep': 1.0, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_A4 = {'name': 'In3d', 'elo': 190., 'ehi':205., 'estep':0.02, 'epass': 20., 'tstep': 1.0, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_A5 = {'name': 'Al2p', 'elo': 566., 'ehi':575., 'estep':0.02, 'epass': 20., 'tstep': 1.0, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_A6 = {'name': 'Survey', 'elo': 540., 'ehi':650., 'estep':0.10, 'epass': 20., 'tstep': 1.0, 'iter': 1, 'cis': False, 'position': 'sample'}
# -- Region B @ 750 eV (G2 1200)
REGION_B1 = {'name': 'MoEF', 'ephot': 750., 'elo': 743.5, 'ehi':745.5, 'estep':0.02, 'epass': 20., 'tstep': 2.0, 'iter': 1, 'cis': False, 'position': 'reference'}
REGION_B2 = {'name': 'In4d', 'elo': 725., 'ehi':731., 'estep':0.02, 'epass': 20., 'tstep': 0.5, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_B3 = {'name': 'As3d', 'elo': 702., 'ehi':707., 'estep':0.02, 'epass': 20., 'tstep': 0.5, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_B4 = {'name': 'In3d', 'elo': 290., 'ehi':305., 'estep':0.02, 'epass': 20., 'tstep': 0.1, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_B5 = {'name': 'Al2p', 'elo': 668., 'ehi':675., 'estep':0.02, 'epass': 20., 'tstep': 0.1, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_B6 = {'name': 'Survey', 'elo': 640., 'ehi':750., 'estep':0.10, 'epass': 20., 'tstep': 0.1, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_B1 = {'name': 'MoEF', 'ephot': 750., 'elo': 742., 'ehi':745.5, 'estep':0.02, 'epass': 20., 'tstep': 2.0, 'iter': 1, 'cis': False, 'position': 'reference'}
REGION_B2 = {'name': 'In4d', 'elo': 723., 'ehi':731., 'estep':0.02, 'epass': 20., 'tstep': 1.0, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_B3 = {'name': 'As3d', 'elo': 700., 'ehi':707., 'estep':0.02, 'epass': 20., 'tstep': 1.0, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_B4 = {'name': 'In3d', 'elo': 290., 'ehi':305., 'estep':0.02, 'epass': 20., 'tstep': 1.0, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_B5 = {'name': 'Al2p', 'elo': 666., 'ehi':675., 'estep':0.02, 'epass': 20., 'tstep': 1.0, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_B6 = {'name': 'Survey', 'elo': 640., 'ehi':750., 'estep':0.10, 'epass': 20., 'tstep': 1.0, 'iter': 1, 'cis': False, 'position': 'sample'}
# -- Region D @ 850 eV (G2 1200)
REGION_D1 = {'name': 'MoEF', 'ephot': 850., 'elo': 842., 'ehi':845.5, 'estep':0.02, 'epass': 20., 'tstep': 2.0, 'iter': 1, 'cis': False, 'position': 'reference'}
REGION_D2 = {'name': 'In4d', 'elo': 823., 'ehi':831., 'estep':0.02, 'epass': 20., 'tstep': 1.0, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_D3 = {'name': 'As3d', 'elo': 800., 'ehi':807., 'estep':0.02, 'epass': 20., 'tstep': 1.0, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_D4 = {'name': 'In3d', 'elo': 390., 'ehi':405., 'estep':0.02, 'epass': 20., 'tstep': 1.0, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_D5 = {'name': 'Al2p', 'elo': 766., 'ehi':775., 'estep':0.02, 'epass': 20., 'tstep': 1.0, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_D6 = {'name': 'Survey', 'elo': 740., 'ehi':850., 'estep':0.10, 'epass': 20., 'tstep': 1.0, 'iter': 1, 'cis': False, 'position': 'sample'}
# -- Region C @ 1050 eV (G2 1200)
REGION_C1 = {'name': 'MoEF', 'ephot': 1050., 'elo': 1043.5, 'ehi':1045.5, 'estep':0.02, 'epass': 20., 'tstep': 4.0, 'iter': 1, 'cis': False, 'position': 'reference'}
REGION_C2 = {'name': 'In4d', 'elo': 1025., 'ehi':1031., 'estep':0.02, 'epass': 20., 'tstep': 0.5, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_C3 = {'name': 'As3d', 'elo': 1002., 'ehi':1007., 'estep':0.02, 'epass': 20., 'tstep': 0.5, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_C4 = {'name': 'In3d', 'elo': 590., 'ehi':605., 'estep':0.02, 'epass': 20., 'tstep': 0.1, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_C5 = {'name': 'Al2p', 'elo': 968., 'ehi':975., 'estep':0.02, 'epass': 20., 'tstep': 0.1, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_C6 = {'name': 'Survey', 'elo': 940., 'ehi':1050., 'estep':0.10, 'epass': 20., 'tstep': 0.1, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_C1 = {'name': 'MoEF', 'ephot': 1050., 'elo': 1042., 'ehi':1045.5, 'estep':0.02, 'epass': 20., 'tstep': 4.0, 'iter': 1, 'cis': False, 'position': 'reference'}
REGION_C2 = {'name': 'In4d', 'elo': 1023., 'ehi':1031., 'estep':0.02, 'epass': 20., 'tstep': 1.0, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_C3 = {'name': 'As3d', 'elo': 1000., 'ehi':1007., 'estep':0.02, 'epass': 20., 'tstep': 1.0, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_C4 = {'name': 'In3d', 'elo': 590., 'ehi':605., 'estep':0.02, 'epass': 20., 'tstep': 1.0, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_C5 = {'name': 'Al2p', 'elo': 966., 'ehi':975., 'estep':0.02, 'epass': 20., 'tstep': 1.0, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION_C6 = {'name': 'Survey', 'elo': 940., 'ehi':1050., 'estep':0.10, 'epass': 20., 'tstep': 1.0, 'iter': 1, 'cis': False, 'position': 'sample'}
# CHOOSE THE REGIONS TO RUN
## (G1 600)
# REGIONS = [REGION_A1,REGION_A2,REGION_A3,REGION_A4]
## (G2 1200)
## REGIONS = [REGION_A1,REGION_A2,REGION_A3,REGION_A4,REGION_A5,REGION_A6,REGION_B1,REGION_B2,REGION_B3,REGION_B4,REGION_B5,REGION_B6,REGION_C1,REGION_C2,REGION_C3,REGION_C4,REGION_C5,REGION_C6]
REGIONS = [REGION_A1,REGION_B1,REGION_C1]
REGIONS = [REGION_A1,REGION_A2,REGION_A3,REGION_A4,REGION_A5,REGION_A6,REGION_B1,REGION_B2,REGION_B3,REGION_B4,REGION_B5,REGION_B6,REGION_D1,REGION_D2,REGION_D3,REGION_D4,REGION_D5,REGION_D6,REGION_C1,REGION_C2,REGION_C3,REGION_C4,REGION_C5,REGION_C6]
# close beam shutter and turn off analyser at the end of the scan
# True or False