Files
x11ma/script/templates/SetupBeamline.py
gac-x11ma d6803e82ba
2022-10-05 09:33:25 +02:00

18 lines
515 B
Python

#If running from editor
if get_exec_pars().source == CommandSource.ui:
ID = "PGM_ID2" #"PGM_ID1_ID2"
ENERGY = 805
POL_ID_1 = "Circ_Plus"
ALPHA_ID_1 = 0.0
HARMONIC_ID_1 = 1
OFFSET_ID_1 = 0.0
POL_ID_2 = "Circ_Minus"
ALPHA_ID_2 = 0.0
HARMONIC_ID_2 = 1
OFFSET_ID_2 = 0.0
GRATING = "G2 1200"
DIFF_ORDER = 1
CFF = 2.250
set_beamline_setup(ID,ENERGY,POL_ID_1,ALPHA_ID_1,HARMONIC_ID_1,OFFSET_ID_1,POL_ID_2,ALPHA_ID_2,HARMONIC_ID_2,OFFSET_ID_2, GRATING, DIFF_ORDER, CFF)