-
Notifications
You must be signed in to change notification settings - Fork 78
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
DL1 to DL2 tool #1343
DL1 to DL2 tool #1343
Conversation
Shall we move it to the |
For the CI/docs action, remove the script entry from .. _lstchain_dl1_to_dl2:
lstchain_dl1_to_dl2
+++++++++++++++++++
.. automodule:: lstchain.scripts.lstchain_dl1_to_dl2
Usage
-----
.. argparse::
:module: lstchain.scripts.lstchain_dl1_to_dl2
:func: parser
:prog: lstchain_dl1_to_dl2 and add to .. automodapi:: lstchain.tools.lstchain_dl1_to_dl2
:no-inheritance-diagram: |
I see no clear advantage in that, and it might make some doc (or school presentation) obsolete. The way of executing it is the same (well, it has additional options, but the basic commands are the same), so the explanations on how to run it will still be ok. |
How does one read the provenance, then? |
|
I'd say it is: from lstchain.io.provenance import read_dl2_provenance
read_dl2_provenance(dl2_hdf5_file_path) I would add it to the documentation.
I would still do it for internal consistency with the rest of scripts/tools. The change will not have any impact on the users' side. Just some modifications in the API docs would be needed. |
traits.Path does not take None as default argument... Any idea how to solve this? |
Should be solved now |
Ok!
Ook... @vuillaut , can you do these two changes, so we can move on? |
There is also the issue of docs failing. @morcuended, will that be solved also with the suggestions you made? |
Let me check locally |
CI tests fail now somewhere else... seems a dl2 test file is not produced or something like that. |
Apparently traits.List requires one switch "-f" per input file. I do not know if this is intended.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1343 +/- ##
==========================================
+ Coverage 72.77% 72.87% +0.10%
==========================================
Files 135 137 +2
Lines 14429 14511 +82
==========================================
+ Hits 10500 10575 +75
- Misses 3929 3936 +7 ☔ View full report in Codecov by Sentry. |
Hi @moralejo, @morcuended, |
In an attempt to solve #1340 , I transformed the DL1 to DL2 script into a ctapipe tool.
I also added functions to write and read the provenance into an HDF5 file.
Advantages:
Drawbacks:
.fits
,.sav
for the models...) and might not be suitable to save the provenance