Open theHenks opened 1 month ago
Attention: Patch coverage is 34.07821%
with 236 lines
in your changes missing coverage. Please review.
Project coverage is 34.25%. Comparing base (
413c7df
) to head (f631749
). Report is 2 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This is still in progress, right?
I need some final checks, than it is ready. But the core is in principle ready to be merged.
Included
read_ldata
function to simplify data loading for a singleDataTier
andChannelId
including fast flattening and concatenation of tables and arrays. The following functionality is implemented: Example (requires a$LEGEND_DATA_CONFIG
environment variable pointing to a legend data-config file):read_ldata
automitcally loads LEGEND data for a specificDataTier
and data selection like e.g. aFileKey
or a run-selection based for a givenChannelId
. Thesearch_disk
function allows the user to search for availableDataTier
andFileKey
on disk. The first argument can be either a selection of keys in form of aNTuple
ofSymbol
or a PropertyFunction which will be applied during loading. It is also possible to load whole aDataPartition
orDataPeriod
for a givenChannelId
ch:In additon, it is possible to load a random selection of
n_evts
events randomly selected from each loaded file:For simplicity, the ch can also be given as a
DetectorID
which will be converted internally to aChannelId
: