cta-observatory / cta-lstchain

LST prototype testbench chain
https://cta-observatory.github.io/cta-lstchain/
BSD 3-Clause "New" or "Revised" License
22 stars 77 forks source link

Confusing error message in DL3 creation using interpolation if not using alpha cuts #1180

Closed morcuended closed 3 weeks ago

morcuended commented 7 months ago

https://github.com/cta-observatory/cta-lstchain/blob/644e43b9b688603c3892cc963b520be9b17fa9f3/lstchain/high_level/interpolate.py#L626-L652

I'm confused by this error here. I think that if I'm not using alpha cuts at all for the DL3 creation, there should not be a log error here in that regard. IMO, logging an error would imply that the tool actually fails, which does not in case this happens.

maxnoe commented 7 months ago

@morcuended Your code snippet does not contain any error...

morcuended commented 7 months ago

that's the piece of code logging the following error due to the KeyError caught

The metadata are comparable
The other parameter axes data are comparable
2023-11-14 12:55:56,178 ERROR [lstchain.high_level.interpolate] (interpolate.interpolate_irf): AL CUTS not present for IRF interpolation

Should AL CUTS be present in the file if I only intended to use GH_CUTS and TH_CUTS?

maxnoe commented 7 months ago

No, AL_CUTS is only relevant for source dependent analysis.