-
Notifications
You must be signed in to change notification settings - Fork 77
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
Write modified images from dl1ab in output DL1 files and fix add_config_metadata
#1145
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1145 +/- ##
==========================================
+ Coverage 73.72% 73.97% +0.25%
==========================================
Files 124 124
Lines 12590 12647 +57
==========================================
+ Hits 9282 9356 +74
+ Misses 3308 3291 -17
☔ View full report in Codecov by Sentry. |
This is certainly useful - the original reason for not enabling this option from the start was that this would allow to run again dl1ab (possible with another addition of noise) over the dl1ab outputs. That is a bit dangerous. To be safe, we could write in the file a flag indicating the images are modified (and perhaps also with which parameters), and then prevent the files to be dl1ab'ed again with noise tuning (I think we should start from the original ones if another noise level is needed). |
…into write_images_dl1ab
…ages already have been modified
Thank you for the feedback. |
Note: I had to modify the |
May be just change the PR title adding a reference to the modifications about the config reading? |
One test failing:
|
add_config_metadata
Failing test is unrelated to changes in this PR. I produced again the run summary file with test data and got run types: DATA, PEDCALIB and DATA (it was expecting DATA, ERROR, DATA types for runs 2005, 2006 and 2008, respectively). Did the R0 files in the test data folders change for run 2006? assert (run_summary_table["run_type"] == ["DATA", "ERROR", "DATA"]).all() |
Yes, I added more files for run 2006 for the tests in #1147 , so that's why it now recognizes 2006 (correctly) as a PEDCALIB run |
Tests are finally passing ! |
The merge-base changed after approval.
The merge-base changed after approval.
my approval keeps being dismissed automatically |
Hu? Why is that? Were the tests not over? |
The merge-base changed after approval.
I approved again after test completion and also happened the same |
…into write_images_dl1ab
This PR allows to write the images in all cases, unless specified not to with
no-image
.It also modifies the function
add_config_metadata
to fix corner cases (especially concerningNone
) and make it more robust to writing, and re-reading of the config.Fixes #1127.