-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add calibration to provenance tracking #74
Conversation
Codecov Report
@@ Coverage Diff @@
## main #74 +/- ##
==========================================
+ Coverage 82.05% 82.18% +0.12%
==========================================
Files 39 39
Lines 4202 4265 +63
==========================================
+ Hits 3448 3505 +57
- Misses 754 760 +6
Continue to review full report at Codecov.
|
Thanks, @Bultako. I'll have a look. |
""" | ||
Create a DRS4 pedestal file for baseline correction. | ||
|
||
Parameters | ||
---------- | ||
drs4_pedestal_run_id : str | ||
String with run number of the pedestal run | ||
pedcal_run_id : str |
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.
why adding this argument here? Is it needed for provenance?
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.
Yes.
It is needed to link both two calibration tasks to a single calibration workflow identified with a label of two numbers, namely drs4_pedestal_run_id-pedcal_run_id
.
Looks good to me. I'm going to test it in the container. |
8f60e52
to
efc9a93
Compare
I think we have to define a boundary on which provenance info |
Agreed. At least for now, we should at least keep track of which calibration files are used in r0_to_dl1 (which we have been doing so far). The information on the production of calibration files produced by osa is limited to the drs4 pedestal and calibration files and corresponding run numbers. We have no straight access to the time file (although in lstosa we look for this file in the same way for using it in r0 to dl1) nor the factor systematic file. |
This PR extends the provenance products files and graph produced to previous calibration steps (as shown in example prov graph calibration_to_dl2_01808_prov.pdf). It adds to the provenance tracking the calibration processes that create pedestal, time and charge calibration files used in already tracked process
ro_to_dl1
, as well as the check plots files produced. Consequently prov products files are now renamed:For the moment, the calibration processes tracked are those involved in the next day processing, those using external lstchain onsite calibration scripts, only input and output files relative to those scripts are tracked skipping the rest of parameters hard coded in those scripts and outside the scope of lstosa. In the future, provenance tracking for massive reprocessing will be added. See #54 (comment) for more details.
It also improves and refactor existing provenance tracking code.