BCDA-APS / apstools

various tools for use with Bluesky at the APS
https://bcda-aps.github.io/apstools/latest/
Other
16 stars 9 forks source link

Replace BEC in `lup()` and `lineup()` plans with PySumReg #884

Closed prjemian closed 10 months ago

prjemian commented 10 months ago

The BEC requires a display for it to display a LivePlot. The config of the LivePlot is used to setup the PeakStats object that returns centroid, width, et al. This is not available when running the Bluesky queueserver. Consequently, the lup() and lineup() plans do not run.

PySumReg can provide peak statistics. Apply it here.

prjemian commented 10 months ago

Also, find a way to write the statistics into a stream of the run.

prjemian commented 10 months ago

Could use this in a callback subscribed to the RE or just decorating a lup() or lineup() plan.

prjemian commented 10 months ago

Better to decorate the inner plan in lup and lineup with this callback. That controls when it is used.