Skip to content

Add lit frame selection

Egor Sobolev requested to merge feat/lit-frames-selection into master

This add selection of lit frame using LitFrameFinder annotation.

Example of use
% exdf-reduce --output-scope none --lff-source=SPB_IRU_AGIPD1M/REDU/LITFRM --lff-det-sources="SPB_DET_AGIPD1M-1/DET/*CH0:xtdf" /gpfs/exfel/exp/SPB/202401/p005476/raw/r0074 
INFO:exdf.cli.reduce:Opened data from /gpfs/exfel/exp/SPB/202401/p005476/raw/r0074 containing 71 sources and 3014 trains across 257 files
INFO:exdf.data_reduction.builtins.LitFrames:For lit-frame selection use source SPB_IRU_AGIPD1M1/REDU/LITFRM
INFO:exdf.data_reduction.builtins.LitFrames: # trains                     Ntrn Nmis   Np  Nd  Nf lit frames
INFO:exdf.data_reduction.builtins.LitFrames: 0 1938565044:1938566820      1776    3  190 190 352 [1:191]
INFO:exdf.data_reduction.builtins.LitFrames: 0 1938566822:1938566827:2       2    0  190 190 352 [1:191]
INFO:exdf.data_reduction.builtins.LitFrames: 0 1938566827:1938567581       754    9  190 190 352 [1:191]
INFO:exdf.data_reduction.builtins.LitFrames: 1 1938567582:1938568055       473    7    0   0 352 []
INFO:exdf.data_reduction.builtins.LitFrames:select frames in SPB_DET_AGIPD1M-1/DET/13CH0:xtdf
INFO:exdf.data_reduction.builtins.LitFrames:select frames in SPB_DET_AGIPD1M-1/DET/0CH0:xtdf
INFO:exdf.data_reduction.builtins.LitFrames:select frames in SPB_DET_AGIPD1M-1/DET/12CH0:xtdf
INFO:exdf.data_reduction.builtins.LitFrames:select frames in SPB_DET_AGIPD1M-1/DET/11CH0:xtdf
INFO:exdf.data_reduction.builtins.LitFrames:select frames in SPB_DET_AGIPD1M-1/DET/9CH0:xtdf
INFO:exdf.data_reduction.builtins.LitFrames:select frames in SPB_DET_AGIPD1M-1/DET/14CH0:xtdf
INFO:exdf.data_reduction.builtins.LitFrames:select frames in SPB_DET_AGIPD1M-1/DET/7CH0:xtdf
INFO:exdf.data_reduction.builtins.LitFrames:select frames in SPB_DET_AGIPD1M-1/DET/3CH0:xtdf
INFO:exdf.data_reduction.builtins.LitFrames:select frames in SPB_DET_AGIPD1M-1/DET/15CH0:xtdf
INFO:exdf.data_reduction.builtins.LitFrames:select frames in SPB_DET_AGIPD1M-1/DET/8CH0:xtdf
INFO:exdf.data_reduction.builtins.LitFrames:select frames in SPB_DET_AGIPD1M-1/DET/10CH0:xtdf
INFO:exdf.data_reduction.builtins.LitFrames:select frames in SPB_DET_AGIPD1M-1/DET/4CH0:xtdf
INFO:exdf.data_reduction.builtins.LitFrames:select frames in SPB_DET_AGIPD1M-1/DET/5CH0:xtdf
INFO:exdf.data_reduction.builtins.LitFrames:select frames in SPB_DET_AGIPD1M-1/DET/2CH0:xtdf
INFO:exdf.data_reduction.builtins.LitFrames:select frames in SPB_DET_AGIPD1M-1/DET/6CH0:xtdf
INFO:exdf.data_reduction.builtins.LitFrames:select frames in SPB_DET_AGIPD1M-1/DET/1CH0:xtdf
INFO:exdf.cli.reduce:Applying LitFrames with 40528 reduction operations
INFO:exdf.cli.reduce:Not writing out any data files

@schmidtp @turkot

Merge request reports