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: pass error dict to output_dict and flag there
path=savepaths['raw_saves']
)
ifmultiwire:
# Check that we have enough data len_data=sum(error_dict.values())
iflen_data<3:
print("Less than 3 data points successful.")
print("Do not trust results.")
# These are now lists# TODO: pass error dict to output_dict and flag therereturnxrms, yrms, xrms_err, yrms_errdefget_beamsize(online, scan_pv):
error= {}
forwire_pvinscan_pv:
# Track faultserror[f"{wire_pv}"] =False# When measurement is done, associated# WIRE:*:XRMS and *:YRMS PVs are updated.ifonline:
ifscan_pv.get() !=0:
raiseNotImplementedError(f"WS {scan_pv} not ready for running.")
scan_pv.put(1)
time.sleep(1)
status=scan_pv.get()
ifstatus==2:
whilescan_pv.get()!=0:
time.sleep(5)
time.sleep(3) # to not break the wire scannerelifstatus==0:
print(f"WS {wire_pv} acquired successfully.")
else:
print(f"WS {wire_pv} did not run. Status {status}.")
error[f"{wire_pv}"] =Truereturnerror
The text was updated successfully, but these errors were encountered:
WIRE:*:XRMS and *:YRMS PVs are updated.
PyEmittance/pyemittance/wire_io.py
Line 84 in 3862eff
The text was updated successfully, but these errors were encountered: