When running PedestalPlot after makepeds, the number of bad pixels for each detector will be reported in an HTML posted to the eLog.
The change in the number of bad pixels will also be reported (from the second DARK run moving on).
Change Log
Changes to PedestalPlot.py
Add an optional request_run parameter to statusStats
Used to pull detector status info from previous DARK runs
New function postBadPixMsg(detectors, exp, run, ...) which determines DARK run pixel status for detectors in experiment exp, for DARK runs up to and including a provided run number.
Currently configured to post a message to the eLog with the current DARK run's bad pixel count as well as the change in that count versus the previous DARK run.
New function getElogBasicAuth(exp) which returns the username and password for authentication when using the eLog API, which can be used to reduce code redundancy. It only works for active experiments since it assumes posting with the opr account which is removed from the list of collaborators for non-active experiments.
New function getRunsWithTag(exp, tag,...) which returns a list of runs that match the specified tag. Used to retrieve the DARK runs.
New function postElogMsg(exp, msg, *, ...) which can be used to post a generic message to the eLog of an active experiment. Can also be used to attach plots, etc. Adapted from the elog package.
Call postBadPixMsg from the plotPedestals function after creating plots and run table. Currently occurs whether or notnosave_elog is set. The message posting can be moved into the final conditional if preferrable.
Description
PedestalPlot
after makepeds, the number of bad pixels for each detector will be reported in an HTML posted to the eLog.Change Log
PedestalPlot.py
request_run
parameter tostatusStats
postBadPixMsg(detectors, exp, run, ...)
which determines DARK run pixel status fordetectors
in experimentexp
, for DARK runs up to and including a providedrun
number.getElogBasicAuth(exp)
which returns the username and password for authentication when using the eLog API, which can be used to reduce code redundancy. It only works for active experiments since it assumes posting with theopr
account which is removed from the list of collaborators for non-active experiments.getRunsWithTag(exp, tag,...)
which returns a list of runs that match the specified tag. Used to retrieve the DARK runs.postElogMsg(exp, msg, *, ...)
which can be used to post a generic message to the eLog of an active experiment. Can also be used to attach plots, etc. Adapted from theelog
package.postBadPixMsg
from theplotPedestals
function after creating plots and run table. Currently occurs whether or notnosave_elog
is set. The message posting can be moved into the final conditional if preferrable.Example