gammapy / enrico

Enrico helps you with your Fermi data analysis
http://enrico.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
22 stars 26 forks source link

issue with IRF #158

Open Sahakyan86 opened 3 years ago

Sahakyan86 commented 3 years ago

Hi,

In the config file, I specified [event] irfs = P8R3_SOURCE_V3 evclass = 128 evtype =3 but it uses P8R3_SOURCE_V2 irf and gives a warning in the gtsrcmap that a newer version of irf is available. As far as I can see, this come from utils.py line 385 classirf = classirfs[evtclass]+"_V2". Should I simply change "_V2" to "_V3" or I am doing something else wrong?

Thanks in advance

davidsanchez commented 3 years ago

Hi, should do the job . let me know and I will update the code thanks

Sahakyan86 commented 3 years ago

thanks a lot! Yes it works.