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 data management and naming of containers files #181

Merged
merged 5 commits into from
Feb 10, 2025

Conversation

guillaumegrolleron
Copy link
Contributor

This PR fix several bugs and is an improvement of the data management and the naming of conainers files when stored on disk.

The behavior of scripts for gain computation, with the SPE fit or photo-stat method are more robust, as well as the charge computation.

guillaume.grolleron added 4 commits February 7, 2025 16:43
… provided

-> not anymore sensitive to the order of kargs given by user
-> It deals smoothly If user set kwargs to default value
-> Exception raised and cautch properly when file no found
@guillaumegrolleron guillaumegrolleron added bug Something isn't working enhancement New feature or request labels Feb 7, 2025
@guillaumegrolleron guillaumegrolleron linked an issue Feb 7, 2025 that may be closed by this pull request
Copy link

codecov bot commented Feb 7, 2025

Codecov Report

Attention: Patch coverage is 22.85714% with 81 lines in your changes missing coverage. Please review.

Project coverage is 62.58%. Comparing base (bac8691) to head (546a610).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
src/nectarchain/data/management.py 8.33% 55 Missing ⚠️
...rchain/makers/calibration/gain/photostat_makers.py 0.00% 10 Missing ⚠️
...in/makers/calibration/gain/flatfield_spe_makers.py 42.85% 8 Missing ⚠️
src/nectarchain/makers/charges_makers.py 0.00% 7 Missing ⚠️
src/nectarchain/makers/extractor/utils.py 91.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #181      +/-   ##
==========================================
- Coverage   63.24%   62.58%   -0.66%     
==========================================
  Files          64       66       +2     
  Lines        4734     4886     +152     
==========================================
+ Hits         2994     3058      +64     
- Misses       1740     1828      +88     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jlenain
Copy link
Collaborator

jlenain commented Feb 7, 2025

Thanks a lot, @guillaumegrolleron !

I'll review the changes in more details a bit later, but at least I confirm that this PR solves #178 .

@jlenain jlenain merged commit f2df538 into cta-observatory:main Feb 10, 2025
9 of 11 checks passed
@jlenain jlenain deleted the bugfix_HHV_filename branch February 10, 2025 12:50
jlenain pushed a commit to jlenain/nectarchain that referenced this pull request Feb 11, 2025
…a-observatory#181)

* cleaner way to get the extractor string asociated to extractor kwargs provided
-> not anymore sensitive to the order of kargs given by user
-> It deals smoothly If user set kwargs to default value

* The search of saved containers (SPE,Charge,wfs) is more robust
-> Exception raised and cautch properly when file no found

* propagation of changes in makers

* script updates + fix of broken photostat code

* update of shell scripts

---------

Co-authored-by: guillaume.grolleron <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mismatch between file's naming
2 participants