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

FileNotFoundError: lstchain/data/SinglePhE_ResponseInPhE_expo2Gaus.dat not found #1253

Closed vuillaut closed 1 month ago

vuillaut commented 1 month ago

Hi

With lstchain >= v0.10.7 I get the following error when running lstchain_mc_r0_to_dl1:

FileNotFoundError: lstchain/data/SinglePhE_ResponseInPhE_expo2Gaus.dat not found
vuillaut commented 1 month ago

Found the source of the error, working on it.

morcuended commented 1 month ago

I think we should use importlib to get these package data files.

vuillaut commented 1 month ago

I think we should use importlib to get these package data files.

Yes... There is no way this script could work without modifying the config.