Skip to content

Commit

Permalink
added gammapy tutorial notebooks to the documentation structure
Browse files Browse the repository at this point in the history
  • Loading branch information
cosimoNigro committed Sep 7, 2021
1 parent 15efad6 commit c7ede0c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
17 changes: 17 additions & 0 deletions docs/fit.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.. _fit:


Use agnpy radiative processes to fit a MWL SED
==============================================
agnpy is a code for numerical modelling: routines for data handling and fitting are not only outside of its scope, but are currently already implemented in several python data-analysis packages.
Agnpy interfaceability with the astropy ecosystem allows it to be seamlessly interfaced with packages such as `sherpa` and `Gammapy`, containing these routines.
In this documentation we provide several tutorial notebooks illustrating how to build wrappers with these two data-analysis packages to perform a :math:`\chi^2` fit of a MWL SED.
We consider different science tools and different science cases (radiative processes). The interested user can find:

* `a tutorial notebook wrapping agnpy with sherpa and fitting Mrk421 MWL SED <tutorials/ssc_sherpa_fit.html>`_;

* `a tutorial notebook wrapping agnpy with Gammapy and fitting Mrk421 MWL SED <tutorials/ssc_gammapy_fit.html>`_;

* `a tutorial notebook wrapping agnpy with sherpa and fitting PKS 1510-089 MWL SED <tutorials/ec_dt_sherpa_fit.html>`_;

* `a tutorial notebook wrapping agnpy with Gammapy and fitting PKS 1510-089 MWL SED <tutorials/ec_dt_gammapy_fit.html>`_.
5 changes: 4 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The numerical operations are delegated to `numpy arrays <https://numpy.org>`_, a

License
-------
The code is licensed under `GNU General Public License v3.0 <https://www.gnu.org/licenses/gpl-3.0.html>`_ (see `LICENSE.md` in the main directory).
The code is licensed under `BSD-3-Clause License <https://opensource.org/licenses/BSD-3-Clause>`_ (see `LICENSE.md` in the main directory).

Installation
------------
Expand Down Expand Up @@ -63,8 +63,11 @@ The documentation includes several tutorial jupyter notebooks providing examples
tutorials/absorption_targets.ipynb
derivations
spectral_constraints
fit
tutorials/ssc_sherpa_fit.ipynb
tutorials/ssc_gammapy_fit.ipynb
tutorials/ec_dt_sherpa_fit.ipynb
tutorials/ec_dt_gammapy_fit.ipynb
bibliography
agnpy

Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ dependencies:
- sherpa
- pip:
- agnpy
- gammapy

0 comments on commit c7ede0c

Please sign in to comment.