naimatic documentation

naimatic is a Python package that provides a framework for building and running multiple astrophysical models using naima.

It allows users to define particle distributions, radiative processes, and model configurations in a structured way from a single YAML configuration file, facilitating the fitting and visualization of multiple models.

The implementation is that of a wrapper around naima which defines a configuration schema validated by pydantic and produces the necessary objects by means of factory functions.

If you find naima useful in your research, you can cite Zabalza (2015) to acknowledge its use. The BibTeX entry for the paper is:

@ARTICLE{naima,
   author = {{Zabalza}, V.},
    title = {naima: a Python package for inference of relativistic particle
             energy distributions from observed nonthermal spectra},
     year = 2015,
  journal = {Proc.~of International Cosmic Ray Conference 2015},
    pages = "922",
   eprint = {1509.03319},
   adsurl = {http://adsabs.harvard.edu/abs/2015arXiv150903319Z},
}

Installation

Within any Python >= 3.9 virtual environment with pip installed, do

pip install git+https://github.com/HealthyPear/naimatic

Usage

To use naimatic, you start from a configuration file that defines your models, particle distributions, and radiative processes.

Assuming this file is called config.yaml, the usage is as simple as:

naimatic config.yaml

See naimatic -h for more options.

The results from each model will be saved in their own subdirectories under the specified output director.