[AGIPD][LITFRM] Feat/add image selection with offline LitFrameFinder
This adds image selection with offline estimation of illuminated frames. The algorithm is implemented in separate package EXtra-redu.
This also fixes two bugs:
- Wrong pulse selection in
agipdlib.AgipdCorrections.read_file()
. Theextra_data.components.XtdfDetectorBase.get_array()
allows to slice pulses inside in train and applies this selection to every train whileagipdlib.LitFrameSelection
provides flat selection over entire run. - Wrong estimation of the number of frames in
get_trains_data()
inAGIPD_Correct_and_Verify
Supposed to be widely tested on data of MID proposal 2834. See litframe report on this proposal: litfrm_p002834.csv
Edited by Egor Sobolev