-
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
Merging fails for some files #869
Comments
@garciagenrique That's a completely independent issue. The behavior you describe is definitely intentional. The Did you try to e.g. merge proton and gamma files? The assertion error in that case (we really shouldn't use assertions for that) is explicitly catched: cta-lstchain/lstchain/io/io.py Line 409 in 94f3170
|
@garciagenrique If you think that the files you try to merge should all be compatible with each other, we need to investigate why the check functions disagree. You can try on this branch here: #868, it should give you an error message that tells you why the merge check failed |
Thanks for creating this @maxnoe. Will give soon feedback asap. |
This error is linked to the MAGIC subarray issue. Some files show different subarrays, since the two MAGIC telescopes are different:
The error should not appear with an updated version of lstchain (>0.8) and selecting the subarray Thanks to @maxnoe for the inputs and fruitful exchanges. |
After some discussion with @vuillaut the issue seems to be trying to The 0.7 files include MAGIC in the subarray and there seems to be a non-determinism with respect to whether MAGIC-I or MAGIC-II are included in the subarray in the HDF due to the issue with storing optics descriptions using the string which does not differ for MAGIC but where the two MAGICS have different mirror areas. So some of the files have MAGIC-I, some have MAGIC-II and due to auto_merge now checking the subarray equality, merging half of the files does not work. For standard dl1 files produced with lstchain 0.8, this won't be a problem, since due to the change in ctapipe 0.11, the MAGIC telescopes won't be included in the hdf subarray when using For combined MAGIC / LST analysis this will still be an issue, that can only be fixed by going to ctapipe 0.12, which changes the data format to allow telescopes with the same name but different properties. |
Thanks a lot @vuillaut ! |
Doing some final tests for the school I found that when a sub run gives an error, an
AssertionError
is raised but, the tool doesn't fail (does not exit with error 1).Below I attach part of the log of the merging to 10 sub dl1 files (only 6 are finally merged)
Originally posted by @garciagenrique in #703 (comment)
The text was updated successfully, but these errors were encountered: