Skip to content
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

improvement of the waveforms and charge extraction #60

Merged
merged 8 commits into from
May 24, 2023

Conversation

guillaumegrolleron
Copy link
Contributor

@guillaumegrolleron guillaumegrolleron commented May 16, 2023

The small PR aims to improve the waveforms and charge extraction in the container module.

-The RAM needed to extract waveforms and charge was to much large for raw data with more than 50000 events. This PR solved this issue by using the ChargeContainers and WaveformsContainers class. Indeed now it is possible to extract waveforms and compute charge treating the fits.fz files one by one. It is quite transparent from outside of the module.
-The script load_wfs_compute_charge.py has been improved to take care of this modifications.

-I aslo fixed a bug concerning the charge extraction, code was mixing the charge extracted and the peak index which was leading to inconsistent data

Basically now the memory usage stay hold back to 20 Gb when it reached 60 Gb before.

guillaume.grolleron added 5 commits May 11, 2023 11:29
 before trying to load cookies
loading all the data in memory -> to evoid ram excess usage
-split computation of charge to finally merge
@guillaumegrolleron guillaumegrolleron changed the title improvement extraction of wav improvement of the waveforms and charge extraction May 16, 2023
@codecov
Copy link

codecov bot commented May 16, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.01 ⚠️

Comparison is base (b1131e2) 0.39% compared to head (eae32c2) 0.38%.

Additional details and impacted files
@@            Coverage Diff            @@
##           master     #60      +/-   ##
=========================================
- Coverage    0.39%   0.38%   -0.01%     
=========================================
  Files          30      30              
  Lines        3275    3350      +75     
=========================================
  Hits           13      13              
- Misses       3262    3337      +75     
Impacted Files Coverage Δ
src/nectarchain/calibration/container/charge.py 0.00% <0.00%> (ø)
src/nectarchain/calibration/container/utils.py 0.00% <0.00%> (ø)
src/nectarchain/calibration/container/waveforms.py 0.00% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@jlenain jlenain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for these improvements, @guillaumegrolleron !

@jlenain jlenain merged commit 6ff8763 into cta-observatory:master May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants