Sign inSign up

cosimonigro/agnpy_paper

By cosimonigro

•Updated over 4 years ago

Reproduce the results published in the agnpy release paper.

Image
0

375

cosimonigro/agnpy_paper repository overview

⁠agnpy: an open-source python package modelling the radiative processes of jetted active galactic nuclei

This docker container archives the conda environment and the scripts used to generate the figures in the paper
"agnpy: an open-source python package modelling the radiative processes of jetted active galactic nuclei".

The repository is available on GitHub⁠ and is also archived in zenodo DOI.

⁠Content of the repository

The repository contains the following files:

.
├── README.md
├── agnpy_paper.yml
├── Dockerfile
├── figure_2_synchrotron_example.py
├── figure_3_u_targets_example.py
├── figure_4_absorption_example.py
├── figure_5_Mrk421_fit_gammapy.py
├── figure_5_Mrk421_fit_sherpa.py
├── figure_6_PKS1510-089_fit_gammapy.py
├── figure_6_PKS1510-089_fit_sherpa.py
├── figure_7_ssc_validation.py
├── figure_8_ec_disk_validation.py
├── figure_9_ec_blr_validation.py
├── figure_10_ec_dt_validation.py
├── figure_11_ec_cmb_validation.py
├── figure_12_tau_blr_validation.py
├── figure_13_tau_dt_validation.py
├── figure_appendix_C_sed_resolution.py
└── utils.py

⁠scripts

Each python script is named after the figure it produces in the paper, followed by a brief description of the computation performed. Figure 5 and 6, representing the fit of two blazars multi-wavelength SEDs, can be produced either using sherpa or gammapy fitting routines. utils.py contains some utility function for timing and reproduction of the reference results.

⁠conda environment

The agnpy_paper.yml file is used to set-up a conda environment containing the same dependencies used in the paper.
The container shell will open with the agnpy_paper conda environment activated and within the agnpy_paper repository: users can directly run any of the scripts, e.g.:

python figure_2_synchrotron_example.py
⁠run the container

To run the container:

docker run -it --rm agnpy_paper

the container shell will open with the agnpy_paper conda environment activated and within the agnpy_paper repository: users can directly run any of the scripts.

The scripts do not display any of the plots, but save them in a figures directory that can be generated by any of the scripts. The easiest solution to visualise the figures produced by the scripts is to create a local figures repository and mount it in the container:

mkdir figures
docker run -it --rm -v $PWD/figures:/root/agnpy_paper/figures agnpy_paper

and then visualise the figures from the local filesysytem.

Tag summary

Content type

Image

Digest

Size

1.3 GB

Last updated

over 4 years ago

docker pull cosimonigro/agnpy_paper