You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# TODO: this saves scalars, update to saving lists better
opt_pvs=opt_pv_info['opt_vars']
savepaths=config_dict['savepaths']
pv_savelist=config_dict['save_scalar_pvs']
# Measurement PVsmeas_pv_info=config_dict['meas_pv_info']
# BS in meters for emittance calcifnotmultiwire:
scan_pv= [PV(meas_pv_info['diagnostic']['pv']['scan'])]
x_size_pv= [PV(meas_pv_info['diagnostic']['pv']['xsize'])]
y_size_pv= [PV(meas_pv_info['diagnostic']['pv']['ysize'])]
else:
# lists of PVsscan_pv= [PV(wire_pv) forwire_pvinmeas_pv_info['diagnostic']['pv']['scan']]
x_size_pv= [PV(x_pv) forx_pvinmeas_pv_info['diagnostic']['pv']['xsize']]
y_size_pv= [PV(y_pv) fory_pvinmeas_pv_info['diagnostic']['pv']['ysize']]
# run wire scans# if multiwire, runs them back to backerror_dict=get_beamsize(online=online, scan_pv=scan_pv)
# Get list of resultsxrms, yrms= [], []
xrms_err, yrms_err= [], []
forx_pv, y_pvinzip(x_size_pv, y_size_pv):
# read in PVs, returned in umxrms.append(x_pv.get()*1e-6)
yrms.append(y_pv.get()*1e-6)
# add some error estimate, no PV that returns this as of 11/2022xrms_err.append(xrms*0.02)
yrms_err.append(yrms*0.02)
# TODO: this saves scalars, update to saving lists betterifsave_summary:
timestamp= (datetime.datetime.now()).strftime("%Y-%m-%d_%H-%M-%S-%f")
save_config(xrms,
The text was updated successfully, but these errors were encountered:
PyEmittance/pyemittance/wire_io.py
Line 53 in 3862eff
The text was updated successfully, but these errors were encountered: