Provide default beamline summaries for MFX which include:
Missing/damaged event plots
XES reconstructions based on droplet analysis
FEE spectrometer tab
Provide examples for adding projections to ROIs in the smd_producer template.
Provide functions for automatic eLog posting in the event of high rates of damaged/missing data on specific detectors of interest. This is another way that beamline staff/users can be alerted to potential problems earlier on.
Remove _ffb from the run parameter name created by smd_producer
NOTE
The current implementation is redundant/duplicates code. In particular, the functions required for producing the automated "missing data" posts in the eLog are replicated in BeamlineSummaries_mfx.py after originally being written in PedestalPlot.py. To address this, I think there are two options:
Refactor these elog functions into a new module, e.g. elog_utils.py or something along those lines. The functions can then be imported into both the summaries and pedestal plot scripts.
Alternatively, the functions can live where they are now in PedestalPlot.py and be imported from there. However, that script must be altered to only run the pedestal functionality when the script is run directly. Something like:
if __name__ == "__main__":
tabs = plotPedestals(expname,run, make_ped_imgs=True, make_ped_data_imgs=False, nosave_elog=nosave_elog)
I find the first option more appealing, but it requires slightly more work/modification. I'll leave the decision up to everyone whether we implement one of those options, or leave the redundant code.
Testing
This was tested and iterated over the mfxl1013621 beamtime.
Change Log
smd_producer
template._ffb
from the run parameter name created bysmd_producer
NOTE
The current implementation is redundant/duplicates code. In particular, the functions required for producing the automated "missing data" posts in the eLog are replicated in
BeamlineSummaries_mfx.py
after originally being written inPedestalPlot.py
. To address this, I think there are two options:elog_utils.py
or something along those lines. The functions can then be imported into both the summaries and pedestal plot scripts.PedestalPlot.py
and be imported from there. However, that script must be altered to only run the pedestal functionality when the script is run directly. Something like:I find the first option more appealing, but it requires slightly more work/modification. I'll leave the decision up to everyone whether we implement one of those options, or leave the redundant code.
Testing
mfxl1013621
beamtime.