fermiPy / fermipy

Fermi-LAT Python Analysis Framework
http://fermipy.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
51 stars 53 forks source link

Simultaneous Fitting of Shape and Spectrum Parameters for Multiple Sources #604

Open giovannicozzolongo opened 1 month ago

giovannicozzolongo commented 1 month ago

Dear Fermipy developers,

  1. I would like to understand how to use Fermipy to simultaneously fit both the shape and spectrum parameters of a single source. Specifically, can this be achieved using localize()? When update=True, does localize() also update the spectrum parameters, or does it only adjust the position of the source?
  2. Additionally, if I set free_background=True, is it possible to free the shape parameters of other sources and fit them using localize() to adjust the coordinates of multiple sources simultaneously?

Thank you in advance for your assistance.