Skip to content

v0.2.0: incorporated sherpa and Gammapy wrappers

Compare
Choose a tag to compare
@cosimoNigro cosimoNigro released this 23 Aug 14:47
· 142 commits to master since this release

In this release, the sherpa and Gammapy wrapper - that before were simple examples in the documentation - have been added to the source code.

A agnpy.fit module has been introduced with two physical scenarios:

  • SycnhrotronSelfComptonModel, representing the sum of synchrotron and synchrotron self-Compton (SSC) radiation. This scenario is commonly considered to model BL Lac sources;

  • ExternalComptonModel, representing the sum of synchrotron and synchrotron self-Compton radiation along with an external Compton (EC) component. EC scattering can be computed considering a list of target photon fields. This scenario is commonly considered to model flat spectrum radio quasars (FSRQs).

For each scenario, a sherpa or gammapy backend can be selected, such that the fit can be performed with both packages.
Some helper functions are added to load directly a file representing a MWL SED with a proper format into a data object of the two packages.