-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplified data loader #59
Conversation
…channels with simple user API
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #59 +/- ##
==========================================
+ Coverage 33.00% 36.40% +3.40%
==========================================
Files 27 28 +1
Lines 1618 2104 +486
==========================================
+ Hits 534 766 +232
- Misses 1084 1338 +254 ☔ View full report in Codecov by Sentry. |
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. |
…on processing to overwrite existing entries
Active and total volume calculation
Refactoring SolidStateDetectors.jl extension
Implement active volume calculation for cracks
@theHenks I merged all PRs on |
Is dev ready to be merged into main then? |
Bugfix when parsing borehole taper in SSD extension
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 a
DataPartition
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
: