Part 2 of the parallel gain support involving support for corrections. As discussed with FXE, we expect to offer combined images based on Hazem's thresholding approach with sigma levels. Because it was cheap to do, one may also turn off thresholding to obtain all gain images for each frame in corrected form.
I aimed for minimal changes to the correction kernel logic:
Pulse indices and cell IDs are either corrected beforehand (without combining) or the high gain values used.
Open questions:
CONTROL
data, I'm somewhat hesitant as this is not merely a correction flavour, but makes assumptions about input data.max_workers
and num_threads_per_worker
are the right ones, but couldn't reliably test with the heavy GPFS load at the momentin_folder = "/gpfs/exfel/exp/FXE/202405/p006736/raw"
run = 80
Suitable darks have already been injected with the parallel gain support in production.
FYI @bermudei