Skip to content
Snippets Groups Projects
Commit 0999cea4 authored by rodolakis's avatar rodolakis
Browse files

fixed logging in octupole

parent 54d4ce18
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ def log_update(d=None,**kwargs):
def log_name_set(file_name):
try:
iex.BL.mda.log.name_set(filename=file_name)
iex.BL.mda.filename = filename
except:
print('No logfile name change')
......
......@@ -353,8 +353,8 @@ def _Octupole_log_dictionary():
Previously: scanlog
"""
tey.get()
mesh.get()
tey.get(verbose=False)
mesh.get(verbose=False)
#header: pv, format
d={
"x":(Octupole_Motors.get('x'),".2f"),
......
......@@ -116,22 +116,22 @@ def m3r_switch_branch(branch,verbose=True):
################################ M3R alignment ##############################
##############################################################################################################
def m3r_centroid(t=None,q=1):
def m3r_centroid(acq_time=None,verbose=False):
'''
Return position of centroid, sigma, m3r:RY (mirror pitch)
Optional argument t to set camera intergration time.
'''
if t is not None:
caput(M3R_cam1+'AcquireTime',t)
if acq_time is not None:
caput(M3R_cam1+'AcquireTime',acq_time)
else:
t=caget(M3R_cam1+'AcquireTime')
acq_time=caget(M3R_cam1+'AcquireTime')
position = round(caget(M3R_stats+'CentroidX_RBV'),2)
sigma = round(caget(M3R_stats+'SigmaX_RBV'),2)
intensity = round(caget(M3R_stats+'CentroidTotal_RBV'),2)
m3rRY = round(caget(M3R_pitch),4)
if q != None:
if verbose:
print('(position, sigma, total intensity, integration time (s), mirror pitch):')
return position,sigma,intensity,t,m3rRY
return position,sigma,intensity,acq_time,m3rRY
def _m3r_align_start(pxl=None):
if pxl == None:
......
......@@ -73,7 +73,7 @@ def mda_user_name():
"""
return iex.BL.mda.user_name()
def mda_user_name():
def mda_run_cycle():
"""
returns the run cycle form the mda filepath
"""
......
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