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

XML model are not regenerated for lightcurve #139

Open mdebony opened 5 years ago

mdebony commented 5 years ago

Hi,

After changing the catalog used for XML model (3FGL to 4FGL), I run enrico_xml and then enrico_sed. It's work fine. Then I run enrico_lc, after light curve have run I note the XML models used by lightcurve are still the old one. I suppress the lightcurve folder and rerun enrico_lc and there it was the right XML models which are used.

Cheers,

mireianievas commented 4 years ago

I don't really understand the question, could you reformulate it? Why do you need the xml file to be regenerated for the LC?. You mean that you were using the 3fgl before and there are still xml files for the LCs not updated to the 4fgl after running enrico_lc or enrico_xml?.

If this is the case, I think the issue is trickier than it looks. When you run the analysis, the srcmap files are linked somehow to a particular xml model. If you happen to repeat the analysis changing the xml model but not touching the srcmap, the output may not be really correct. As options I would suggest: