Skip to content
Snippets Groups Projects
Commit c8519496 authored by 29iduser's avatar 29iduser
Browse files

debug

parent 52a840c2
No related branches found
No related tags found
Loading
from iexcode.instruments.IEX_BL_config import BLconfig_endstation_name
import numpy as np
from epics import caget
......@@ -8,6 +9,7 @@ from iexcode.instruments.xrays import getE, slit_get
from iexcode.instruments.VLS_PGM import mono_grating_get
from iexcode.instruments.electron_analyzer import EA, resolution_EA, SES_slit_get
from iexcode.instruments.ARPES import ARPES_extra_pvs
from iexcode.instruments.scanRecord import *
#############################################################################################################
############################## Resolution ##############################
#############################################################################################################
......@@ -19,9 +21,10 @@ def resolution():
"""
grt = mono_grating_get()
hv_eV = getE()
slit_size = take_closest_value([10,20,50,100,200],round(slit_get(),0))
slit_size = take_closest_value([10,20,50,100,200],round(slit_get()[0][0],0))
if iex.BL.endstation_name == "ARPES":
#if iex.BL.endstation_name == "ARPES":
if BLconfig_endstation_name == 'ARPES':
slit_SES = SES_slit_get()
PE = int(EA.PassEnergy)
Tsample = caget(ARPES_extra_pvs['TA'])
......
......@@ -566,7 +566,8 @@ def slit_get(verbose=True):
ARPES = 0 < x < 300 um
Kappa = 0 < x < 1000 um
"""
branch = iex.BL.branch
#branch = iex.BL.branch
branch = BLconfig_branch()
slit_size,slit_center = exit_slit_get(branch,verbose=verbose)
return slit_size,slit_center
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment