To run charge injection at ASC or elsewhere
See Kaz's comment here.
To analyze a charge injection run
I do e.g. epix10ka_offset_calibration -e detdaq21 -r 22 -i 0 -G 73,82 --idx=0 --nspace=7 -d DetLab.0:Epix10ka.0. This produces plots in a directory structure that is labelled by the detector serial ID and the test date. The -i parameter determines which module to analyze for e.g. a quad. The script produces a ton of commentary but what's useful for is is that path information, which I grep doing e.g.
ls /reg/g/psdm/detector/gains/epix10k/panels/3791912962-0170007809-3607101462-1663404124-0001354881-3000606721-2650800153/plots/epix10ka_0109_20230201091541_detda*AML*
So for example
/reg/g/psdm/detector/gains/epix10k/panels/3791912962-0170007809-3607101462-1663404124-0001354881-3000606721-2650800153/plots/epix10ka_0109_20230201091541_detdaq21_r0016-DetLab-0-Epix10ka-0-seg00-cc031-AML-M-dat-r073-c082-ibr10-ibc11.png
and
/reg/g/psdm/detector/gains/epix10k/panels/3791912962-0170007809-3607101462-1663404124-0001354881-3000606721-2650800153/plots/epix10ka_0109_20230201091541_detdaq21_r0016-DetLab-0-Epix10ka-0-seg00-cc031-AML-M-fit-r073-c082-ibr10-ibc11.png
are the sawtooth and single-period plots.
Because the process creates an analysis summary that blocks repeated analysis, if I do another pixel I find the serial ID and do e.g.
rm /reg/g/psdm/detector/gains/epix10k/panels/3791912962-0170007809-3607101462-1663404124-0001354881-3000606721-2650800153/*/*npz