-
Notifications
You must be signed in to change notification settings - Fork 12
Add BlockNectarCAMEventSource class #60
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
Conversation
…ck (or a specific set of blocks).
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #60 +/- ##
==========================================
- Coverage 88.75% 85.60% -3.16%
==========================================
Files 7 7
Lines 685 917 +232
==========================================
+ Hits 608 785 +177
- Misses 77 132 +55 ☔ View full report in Codecov by Sentry. |
|
Hi @vmarandon ! Thanks a lot for that! It would be good indeed if the new class |
…ub files when there is missing file instead of using the normal behavior or NectarCAMEventSource
|
As I'm using the NectarCAMEventSource as the baseline for the processing of each block, I don't think it's possible to make it inherit from NectarCAMEventSource as it would imply some weird inheritance diagram. |
|
Hi @vmarandon , Many thanks for this PR! Do you also have an implementation of unit tests ready for the new |
|
I've expanded the existing test to add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot, @vmarandon , also for adding unit tests for BlockNectarCAMEventSource.
Will read the data per block instead of all the files together. This remove the limitation of long acquisition that consume too much memory and reach quickly the limit of opened file.
The grouping of the blocks is 4 by default and correspond to the number of data stream of the acquisition.
There is also option to only read a certain set of blocks