APS-USAXS / livedata

live data from the APS USAXS instrument
https://usaxslive.xray.aps.anl.gov/
0 stars 0 forks source link

no SAXS, WAXS, USAXS plots on livedata page #41

Closed prjemian closed 3 years ago

prjemian commented 3 years ago

While working on https://github.com/APS-USAXS/ipython-usaxs/issues/371, we noticed no new data being plotted: https://usaxslive.xray.aps.anl.gov/

prjemian commented 3 years ago

On analysis, this is because of data format errors (related to APS-USAXS/ipython-usaxs#371) in the SPEC data file. When the SPEC scan was interpreted, if that failed, this would stop all plot processing for the current livedata update cycle. The exception is caught at the outermost loop in livedata so the process was not killed, but that stops any plots from being generated.

The fix is to apply try..except handling around each spec_scan.interpret() call in scanplots.py. This worked for the data format errors in the Flyscan scans.