European-XFEL / EXtra-data

Access saved EuXFEL data
https://extra-data.rtfd.io
BSD 3-Clause "New" or "Revised" License
7 stars 14 forks source link

Allow kd[trains] for multi-module KeyData objects #520

Closed takluyver closed 6 months ago

takluyver commented 6 months ago

Regular KeyData objects allow selecting trains like xgm_intensity[:100] . But the objects for multi-module detectors, which generally aim to have a similar API, require something like lpd_mask.select_trains(np.s_[:100]). This makes lpd_mask[:100] work as well.

philsmt commented 6 months ago

LGTM

takluyver commented 6 months ago

Thanks!