gammapy 2.1__tar.gz → 2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gammapy-2.2/.dockerignore +4 -0
- gammapy-2.2/.github/PULL_REQUEST_TEMPLATE.md +28 -0
- gammapy-2.2/.github/workflows/cffconvert.yml +67 -0
- gammapy-2.2/.github/workflows/changelog.yml +45 -0
- gammapy-2.2/.github/workflows/ci.yml +182 -0
- gammapy-2.2/.github/workflows/docker_build.yml +19 -0
- gammapy-2.2/.github/workflows/doctests.yml +36 -0
- gammapy-2.2/.github/workflows/linkcheck.yml +44 -0
- gammapy-2.2/.github/workflows/nightly_builds.yml +27 -0
- gammapy-2.2/.github/workflows/release.yml +57 -0
- gammapy-2.2/.github/workflows/sonar.yml +112 -0
- gammapy-2.2/.github/workflows/tutorialjupytexttests.yml +64 -0
- gammapy-2.2/.github/workflows/validate_zenodo.yml +13 -0
- gammapy-2.2/.mailmap +190 -0
- gammapy-2.2/.zenodo.json +276 -0
- gammapy-2.2/CITATION.cff +232 -0
- gammapy-2.2/Dockerfile +28 -0
- gammapy-2.2/Makefile +96 -0
- gammapy-2.2/PKG-INFO +94 -0
- gammapy-2.2/README.rst +103 -0
- gammapy-2.2/codemeta.json +509 -0
- gammapy-2.2/dev/authors.py +157 -0
- gammapy-2.2/dev/codemeta.py +85 -0
- gammapy-2.2/dev/codespell/ignore-words.txt +17 -0
- gammapy-2.2/dev/contributors.py +198 -0
- gammapy-2.2/dev/ipynb_to_gallery.py +66 -0
- gammapy-2.2/dev/license_checker.py +165 -0
- gammapy-2.2/dev/prepare-release.py +37 -0
- gammapy-2.2/docs/_static/dark_matter_bands_plot_example.png +0 -0
- gammapy-2.2/docs/_static/dark_matter_mass_scan_example.png +0 -0
- gammapy-2.2/docs/_static/freq_UL_bands.png +0 -0
- gammapy-2.2/docs/conf.py +352 -0
- gammapy-2.2/docs/development/dev_howto.rst +987 -0
- gammapy-2.2/docs/development/doc_howto.rst +463 -0
- gammapy-2.2/docs/development/guidelines.rst +55 -0
- gammapy-2.2/docs/development/index.rst +51 -0
- gammapy-2.2/docs/development/intro.rst +354 -0
- gammapy-2.2/docs/development/pigs/index.rst +53 -0
- gammapy-2.2/docs/development/pigs/pig-030.rst +449 -0
- gammapy-2.2/docs/development/pigs/pig-031.rst +151 -0
- gammapy-2.2/docs/development/pigs/pig-032.rst +190 -0
- gammapy-2.2/docs/development/pigs/pig-033.rst +656 -0
- gammapy-2.2/docs/development/release.rst +305 -0
- gammapy-2.2/docs/getting-started/environments.rst +116 -0
- gammapy-2.2/docs/getting-started/index.rst +206 -0
- gammapy-2.2/docs/getting-started/install.rst +242 -0
- gammapy-2.2/docs/getting-started/quickstart.rst +70 -0
- gammapy-2.2/docs/index.rst +167 -0
- gammapy-2.2/docs/references.txt +152 -0
- gammapy-2.2/docs/release-notes/index.rst +261 -0
- gammapy-2.2/docs/release-notes/v2.2.rst +239 -0
- gammapy-2.2/docs/release-notes/v2.3.rst +8 -0
- gammapy-2.2/docs/robots.txt +5 -0
- gammapy-2.2/docs/sphinxext.py +104 -0
- gammapy-2.2/docs/user-guide/astro/darkmatter/index.rst +62 -0
- gammapy-2.2/docs/user-guide/astro/population/plot_velocity_distributions.py +29 -0
- gammapy-2.2/docs/user-guide/astro/source/plot_pulsar_spindown.py +17 -0
- gammapy-2.2/docs/user-guide/catalog.rst +42 -0
- gammapy-2.2/docs/user-guide/datasets/index.rst +258 -0
- gammapy-2.2/docs/user-guide/howto.rst +459 -0
- gammapy-2.2/docs/user-guide/makers/make_rectangular_reflected_background.py +46 -0
- gammapy-2.2/docs/user-guide/modeling.rst +140 -0
- gammapy-2.2/docs/user-guide/stats/fit_statistics.rst +249 -0
- gammapy-2.2/environment-dev.yml +97 -0
- gammapy-2.2/examples/models/spatial/plot_disk.py +125 -0
- gammapy-2.2/examples/models/spatial/plot_template.py +42 -0
- gammapy-2.2/examples/models/spectral/plot_broken_powerlaw.py +45 -0
- gammapy-2.2/examples/models/spectral/plot_constant_spectral.py +35 -0
- gammapy-2.2/examples/models/spectral/plot_smooth_broken_powerlaw.py +44 -0
- gammapy-2.2/examples/tutorials/analysis-1d/cta_sensitivity.py +278 -0
- gammapy-2.2/examples/tutorials/analysis-1d/spectral_analysis.py +579 -0
- gammapy-2.2/examples/tutorials/analysis-1d/spectral_analysis_hli.py +474 -0
- gammapy-2.2/examples/tutorials/analysis-3d/analysis_3d.py +477 -0
- gammapy-2.2/examples/tutorials/analysis-3d/cta_data_analysis.py +396 -0
- gammapy-2.2/examples/tutorials/analysis-3d/event_sampling.py +501 -0
- gammapy-2.2/examples/tutorials/analysis-3d/event_sampling_nrg_depend_models.py +359 -0
- gammapy-2.2/examples/tutorials/analysis-3d/non_detected_source.py +512 -0
- gammapy-2.2/examples/tutorials/analysis-3d/onoff_analysis.py +217 -0
- gammapy-2.2/examples/tutorials/analysis-time/light_curve_flare.py +330 -0
- gammapy-2.2/examples/tutorials/analysis-time/light_curve_simulation.py +356 -0
- gammapy-2.2/examples/tutorials/astrophysics/dark_matter_basics.py +700 -0
- gammapy-2.2/examples/tutorials/astrophysics/dark_matter_complete_analysis.py +1161 -0
- gammapy-2.2/examples/tutorials/astrophysics/energy_dependent_estimation.py +244 -0
- gammapy-2.2/examples/tutorials/data/ctao.py +302 -0
- gammapy-2.2/examples/tutorials/data/fermi_lat.py +599 -0
- gammapy-2.2/examples/tutorials/data/hawc.py +288 -0
- gammapy-2.2/examples/tutorials/details/bayesian_model_selection.py +638 -0
- gammapy-2.2/examples/tutorials/details/datasets.py +582 -0
- gammapy-2.2/examples/tutorials/details/estimators.py +330 -0
- gammapy-2.2/examples/tutorials/details/fitting.py +524 -0
- gammapy-2.2/examples/tutorials/details/irfs.py +549 -0
- gammapy-2.2/examples/tutorials/details/maps.py +1064 -0
- gammapy-2.2/examples/tutorials/details/mask_maps.py +471 -0
- gammapy-2.2/examples/tutorials/details/nested_sampling_Crab.py +660 -0
- gammapy-2.2/examples/tutorials/details/observation_clustering.py +241 -0
- gammapy-2.2/examples/tutorials/details/priors.py +512 -0
- gammapy-2.2/examples/tutorials/starting/analysis_1.py +448 -0
- gammapy-2.2/gammapy/__main__.py +15 -0
- gammapy-2.2/gammapy/analysis/config.py +564 -0
- gammapy-2.2/gammapy/astro/darkmatter/__init__.py +42 -0
- gammapy-2.2/gammapy/astro/darkmatter/profiles.py +410 -0
- gammapy-2.2/gammapy/astro/darkmatter/spectra.py +957 -0
- gammapy-2.2/gammapy/astro/darkmatter/tests/test_profiles.py +548 -0
- gammapy-2.2/gammapy/astro/darkmatter/tests/test_spectra.py +714 -0
- gammapy-2.2/gammapy/astro/darkmatter/tests/test_utils.py +407 -0
- gammapy-2.2/gammapy/astro/darkmatter/utils.py +359 -0
- gammapy-2.2/gammapy/astro/population/simulate.py +488 -0
- gammapy-2.2/gammapy/astro/source/__init__.py +14 -0
- gammapy-2.2/gammapy/astro/source/pulsar.py +199 -0
- gammapy-2.2/gammapy/astro/source/pwn.py +131 -0
- gammapy-2.2/gammapy/astro/source/snr.py +324 -0
- gammapy-2.2/gammapy/catalog/__init__.py +81 -0
- gammapy-2.2/gammapy/catalog/core.py +339 -0
- gammapy-2.2/gammapy/catalog/fermi.py +2355 -0
- gammapy-2.2/gammapy/catalog/gammacat.py +379 -0
- gammapy-2.2/gammapy/catalog/hawc.py +340 -0
- gammapy-2.2/gammapy/catalog/hess.py +1016 -0
- gammapy-2.2/gammapy/catalog/tests/data/4fhl_J0006.0+7319e.txt +49 -0
- gammapy-2.2/gammapy/catalog/tests/test_fermi.py +1024 -0
- gammapy-2.2/gammapy/data/data_store.py +887 -0
- gammapy-2.2/gammapy/data/event_list.py +1116 -0
- gammapy-2.2/gammapy/data/filters.py +132 -0
- gammapy-2.2/gammapy/data/gti.py +512 -0
- gammapy-2.2/gammapy/data/io.py +260 -0
- gammapy-2.2/gammapy/data/ivoa.py +601 -0
- gammapy-2.2/gammapy/data/obs_table.py +457 -0
- gammapy-2.2/gammapy/data/observations.py +987 -0
- gammapy-2.2/gammapy/data/pointing.py +581 -0
- gammapy-2.2/gammapy/data/tests/test_ivoa.py +247 -0
- gammapy-2.2/gammapy/data/tests/test_obs_table.py +366 -0
- gammapy-2.2/gammapy/data/tests/test_pointing.py +324 -0
- gammapy-2.2/gammapy/datasets/actors.py +241 -0
- gammapy-2.2/gammapy/datasets/core.py +674 -0
- gammapy-2.2/gammapy/datasets/evaluator.py +591 -0
- gammapy-2.2/gammapy/datasets/flux_points.py +644 -0
- gammapy-2.2/gammapy/datasets/io.py +700 -0
- gammapy-2.2/gammapy/datasets/map.py +3488 -0
- gammapy-2.2/gammapy/datasets/metadata.py +101 -0
- gammapy-2.2/gammapy/datasets/simulate.py +686 -0
- gammapy-2.2/gammapy/datasets/spectrum.py +571 -0
- gammapy-2.2/gammapy/datasets/tests/test_datasets.py +306 -0
- gammapy-2.2/gammapy/datasets/tests/test_flux_points.py +249 -0
- gammapy-2.2/gammapy/datasets/tests/test_map.py +2635 -0
- gammapy-2.2/gammapy/datasets/tests/test_metadata.py +112 -0
- gammapy-2.2/gammapy/datasets/tests/test_simulate.py +1043 -0
- gammapy-2.2/gammapy/datasets/tests/test_spectrum.py +1338 -0
- gammapy-2.2/gammapy/datasets/tests/test_utils.py +319 -0
- gammapy-2.2/gammapy/datasets/utils.py +513 -0
- gammapy-2.2/gammapy/estimators/__init__.py +60 -0
- gammapy-2.2/gammapy/estimators/core.py +99 -0
- gammapy-2.2/gammapy/estimators/energydependentmorphology.py +348 -0
- gammapy-2.2/gammapy/estimators/map/asmooth.py +319 -0
- gammapy-2.2/gammapy/estimators/map/core.py +1329 -0
- gammapy-2.2/gammapy/estimators/map/excess.py +500 -0
- gammapy-2.2/gammapy/estimators/map/tests/test_excess.py +496 -0
- gammapy-2.2/gammapy/estimators/map/tests/test_ts.py +910 -0
- gammapy-2.2/gammapy/estimators/map/ts.py +1139 -0
- gammapy-2.2/gammapy/estimators/parameter.py +580 -0
- gammapy-2.2/gammapy/estimators/points/__init__.py +20 -0
- gammapy-2.2/gammapy/estimators/points/core.py +937 -0
- gammapy-2.2/gammapy/estimators/points/lightcurve.py +273 -0
- gammapy-2.2/gammapy/estimators/points/profile.py +204 -0
- gammapy-2.2/gammapy/estimators/points/sed.py +974 -0
- gammapy-2.2/gammapy/estimators/points/tests/test_collection.py +302 -0
- gammapy-2.2/gammapy/estimators/points/tests/test_lightcurve.py +917 -0
- gammapy-2.2/gammapy/estimators/points/tests/test_regularized.py +178 -0
- gammapy-2.2/gammapy/estimators/points/tests/test_sed.py +1039 -0
- gammapy-2.2/gammapy/estimators/points/tests/test_sensitivity.py +140 -0
- gammapy-2.2/gammapy/estimators/profile.py +414 -0
- gammapy-2.2/gammapy/estimators/tests/test_energydependentmorphology.py +191 -0
- gammapy-2.2/gammapy/estimators/tests/test_parameter_estimator.py +142 -0
- gammapy-2.2/gammapy/estimators/tests/test_utils.py +314 -0
- gammapy-2.2/gammapy/estimators/utils.py +1514 -0
- gammapy-2.2/gammapy/io/asdf/converters/data/gti.py +21 -0
- gammapy-2.2/gammapy/io/asdf/converters/data/tests/test_gti.py +64 -0
- gammapy-2.2/gammapy/io/asdf/converters/datasets/core.py +69 -0
- gammapy-2.2/gammapy/io/asdf/converters/datasets/map.py +21 -0
- gammapy-2.2/gammapy/io/asdf/converters/datasets/tests/test_map.py +311 -0
- gammapy-2.2/gammapy/io/asdf/converters/irf/core.py +20 -0
- gammapy-2.2/gammapy/io/asdf/converters/irf/edisp/map.py +26 -0
- gammapy-2.2/gammapy/io/asdf/converters/irf/edisp/tests/test_map.py +88 -0
- gammapy-2.2/gammapy/io/asdf/converters/irf/psf/map.py +26 -0
- gammapy-2.2/gammapy/io/asdf/converters/irf/psf/tests/test_map.py +98 -0
- gammapy-2.2/gammapy/io/asdf/converters/maps/axes.py +106 -0
- gammapy-2.2/gammapy/io/asdf/converters/maps/geom.py +112 -0
- gammapy-2.2/gammapy/io/asdf/converters/maps/maps.py +15 -0
- gammapy-2.2/gammapy/io/asdf/converters/maps/ndmap.py +78 -0
- gammapy-2.2/gammapy/io/asdf/converters/maps/tests/test_axes.py +413 -0
- gammapy-2.2/gammapy/io/asdf/converters/maps/tests/test_geom.py +383 -0
- gammapy-2.2/gammapy/io/asdf/converters/maps/tests/test_map.py +27 -0
- gammapy-2.2/gammapy/io/asdf/converters/maps/tests/test_ndmap.py +465 -0
- gammapy-2.2/gammapy/io/asdf/converters/modeling/models/core.py +23 -0
- gammapy-2.2/gammapy/io/asdf/converters/modeling/models/tests/test_core.py +199 -0
- gammapy-2.2/gammapy/io/asdf/extensions.py +62 -0
- gammapy-2.2/gammapy/io/asdf/integration.py +47 -0
- gammapy-2.2/gammapy/io/asdf/resources/manifests/gammapy-1.0.0.yaml +44 -0
- gammapy-2.2/gammapy/io/asdf/resources/schemas/data/gti-1.0.0.yaml +24 -0
- gammapy-2.2/gammapy/io/asdf/resources/schemas/datasets/mapdataset-1.0.0.yaml +81 -0
- gammapy-2.2/gammapy/io/asdf/resources/schemas/datasets/mapdatasetonoff-1.0.0.yaml +96 -0
- gammapy-2.2/gammapy/io/asdf/resources/schemas/irf/edispkernelmap-1.0.0.yaml +33 -0
- gammapy-2.2/gammapy/io/asdf/resources/schemas/irf/edispmap-1.0.0.yaml +34 -0
- gammapy-2.2/gammapy/io/asdf/resources/schemas/irf/psfmap-1.0.0.yaml +33 -0
- gammapy-2.2/gammapy/io/asdf/resources/schemas/irf/recopsfmap-1.0.0.yaml +33 -0
- gammapy-2.2/gammapy/io/asdf/resources/schemas/maps/hpxgeom-1.0.0.yaml +43 -0
- gammapy-2.2/gammapy/io/asdf/resources/schemas/maps/hpxndmap-1.0.0.yaml +32 -0
- gammapy-2.2/gammapy/io/asdf/resources/schemas/maps/labelmapaxis-1.0.0.yaml +27 -0
- gammapy-2.2/gammapy/io/asdf/resources/schemas/maps/mapaxes-1.0.0.yaml +26 -0
- gammapy-2.2/gammapy/io/asdf/resources/schemas/maps/mapaxis-1.0.0.yaml +46 -0
- gammapy-2.2/gammapy/io/asdf/resources/schemas/maps/maps-1.0.0.yaml +19 -0
- gammapy-2.2/gammapy/io/asdf/resources/schemas/maps/regiongeom-1.0.0.yaml +31 -0
- gammapy-2.2/gammapy/io/asdf/resources/schemas/maps/regionndmap-1.0.0.yaml +32 -0
- gammapy-2.2/gammapy/io/asdf/resources/schemas/maps/timemapaxis-1.0.0.yaml +39 -0
- gammapy-2.2/gammapy/io/asdf/resources/schemas/maps/wcsgeom-1.0.0.yaml +44 -0
- gammapy-2.2/gammapy/io/asdf/resources/schemas/maps/wcsndmap-1.0.0.yaml +33 -0
- gammapy-2.2/gammapy/io/asdf/resources/schemas/modeling/models-1.0.0.yaml +49 -0
- gammapy-2.2/gammapy/irf/background.py +554 -0
- gammapy-2.2/gammapy/irf/core.py +1116 -0
- gammapy-2.2/gammapy/irf/edisp/core.py +401 -0
- gammapy-2.2/gammapy/irf/edisp/kernel.py +687 -0
- gammapy-2.2/gammapy/irf/edisp/map.py +603 -0
- gammapy-2.2/gammapy/irf/edisp/tests/test_kernel.py +188 -0
- gammapy-2.2/gammapy/irf/edisp/tests/test_map.py +353 -0
- gammapy-2.2/gammapy/irf/effective_area.py +292 -0
- gammapy-2.2/gammapy/irf/psf/core.py +311 -0
- gammapy-2.2/gammapy/irf/psf/map.py +750 -0
- gammapy-2.2/gammapy/irf/psf/parametric.py +451 -0
- gammapy-2.2/gammapy/irf/psf/table.py +40 -0
- gammapy-2.2/gammapy/irf/psf/tests/test_map.py +608 -0
- gammapy-2.2/gammapy/irf/psf/tests/test_table.py +105 -0
- gammapy-2.2/gammapy/irf/tests/__init__.py +1 -0
- gammapy-2.2/gammapy/irf/tests/test_background.py +476 -0
- gammapy-2.2/gammapy/irf/tests/test_core.py +153 -0
- gammapy-2.2/gammapy/irf/tests/test_io.py +353 -0
- gammapy-2.2/gammapy/makers/__init__.py +51 -0
- gammapy-2.2/gammapy/makers/background/__init__.py +23 -0
- gammapy-2.2/gammapy/makers/background/onoffpair.py +168 -0
- gammapy-2.2/gammapy/makers/background/reflected.py +604 -0
- gammapy-2.2/gammapy/makers/background/ring.py +349 -0
- gammapy-2.2/gammapy/makers/background/tests/__init__.py +1 -0
- gammapy-2.2/gammapy/makers/background/tests/test_onoff.py +103 -0
- gammapy-2.2/gammapy/makers/background/tests/test_reflected.py +478 -0
- gammapy-2.2/gammapy/makers/map.py +574 -0
- gammapy-2.2/gammapy/makers/tests/__init__.py +1 -0
- gammapy-2.2/gammapy/makers/tests/test_asymm_irf.py +156 -0
- gammapy-2.2/gammapy/makers/tests/test_map.py +1028 -0
- gammapy-2.2/gammapy/makers/tests/test_utils.py +1071 -0
- gammapy-2.2/gammapy/makers/utils.py +1135 -0
- gammapy-2.2/gammapy/maps/axes.py +3577 -0
- gammapy-2.2/gammapy/maps/coord.py +325 -0
- gammapy-2.2/gammapy/maps/core.py +2140 -0
- gammapy-2.2/gammapy/maps/geom.py +683 -0
- gammapy-2.2/gammapy/maps/hpx/geom.py +1452 -0
- gammapy-2.2/gammapy/maps/hpx/tests/__init__.py +1 -0
- gammapy-2.2/gammapy/maps/measure.py +119 -0
- gammapy-2.2/gammapy/maps/region/geom.py +950 -0
- gammapy-2.2/gammapy/maps/region/tests/__init__.py +1 -0
- gammapy-2.2/gammapy/maps/region/tests/test_ndmap.py +453 -0
- gammapy-2.2/gammapy/maps/tests/__init__.py +1 -0
- gammapy-2.2/gammapy/maps/tests/test_axes.py +1203 -0
- gammapy-2.2/gammapy/maps/wcs/geom.py +1289 -0
- gammapy-2.2/gammapy/maps/wcs/ndmap.py +1181 -0
- gammapy-2.2/gammapy/maps/wcs/tests/__init__.py +1 -0
- gammapy-2.2/gammapy/maps/wcs/tests/test_geom.py +792 -0
- gammapy-2.2/gammapy/maps/wcs/tests/test_ndmap.py +1167 -0
- gammapy-2.2/gammapy/modeling/__init__.py +34 -0
- gammapy-2.2/gammapy/modeling/covariance.py +284 -0
- gammapy-2.2/gammapy/modeling/fit.py +888 -0
- gammapy-2.2/gammapy/modeling/iminuit.py +233 -0
- gammapy-2.2/gammapy/modeling/models/__init__.py +230 -0
- gammapy-2.2/gammapy/modeling/models/core.py +1411 -0
- gammapy-2.2/gammapy/modeling/models/prior.py +462 -0
- gammapy-2.2/gammapy/modeling/models/spatial.py +1871 -0
- gammapy-2.2/gammapy/modeling/models/spectral.py +2843 -0
- gammapy-2.2/gammapy/modeling/models/spectral_cosmic_ray.py +97 -0
- gammapy-2.2/gammapy/modeling/models/temporal.py +1326 -0
- gammapy-2.2/gammapy/modeling/models/tests/__init__.py +1 -0
- gammapy-2.2/gammapy/modeling/models/tests/data/examples.yaml +181 -0
- gammapy-2.2/gammapy/modeling/models/tests/data/make.py +113 -0
- gammapy-2.2/gammapy/modeling/models/tests/test_prior.py +322 -0
- gammapy-2.2/gammapy/modeling/models/tests/test_spatial.py +927 -0
- gammapy-2.2/gammapy/modeling/models/tests/test_spectral.py +1643 -0
- gammapy-2.2/gammapy/modeling/models/tests/test_temporal.py +682 -0
- gammapy-2.2/gammapy/modeling/parameter.py +1076 -0
- gammapy-2.2/gammapy/modeling/sampler.py +522 -0
- gammapy-2.2/gammapy/modeling/selection/bayesian.py +500 -0
- gammapy-2.2/gammapy/modeling/selection/inference_data.py +360 -0
- gammapy-2.2/gammapy/modeling/selection/tests/__init__.py +1 -0
- gammapy-2.2/gammapy/modeling/selection/tests/test_bayesian.py +101 -0
- gammapy-2.2/gammapy/modeling/selection/tests/test_inference_data.py +192 -0
- gammapy-2.2/gammapy/modeling/tests/__init__.py +1 -0
- gammapy-2.2/gammapy/modeling/tests/test_covariance.py +88 -0
- gammapy-2.2/gammapy/modeling/tests/test_fit.py +469 -0
- gammapy-2.2/gammapy/modeling/tests/test_sampler.py +481 -0
- gammapy-2.2/gammapy/scripts/check.py +27 -0
- gammapy-2.2/gammapy/scripts/tests/__init__.py +1 -0
- gammapy-2.2/gammapy/scripts/tests/test_workflow.py +30 -0
- gammapy-2.2/gammapy/scripts/tutorial_info.py +35 -0
- gammapy-2.2/gammapy/stats/fit_statistics.py +645 -0
- gammapy-2.2/gammapy/stats/fit_statistics_cython.c +15084 -0
- gammapy-2.2/gammapy/stats/tests/__init__.py +1 -0
- gammapy-2.2/gammapy/stats/tests/test_utils.py +48 -0
- gammapy-2.2/gammapy/stats/tests/test_variability.py +388 -0
- gammapy-2.2/gammapy/stats/utils.py +162 -0
- gammapy-2.2/gammapy/stats/variability.py +513 -0
- gammapy-2.2/gammapy/utils/array.py +188 -0
- gammapy-2.2/gammapy/utils/cache.py +151 -0
- gammapy-2.2/gammapy/utils/cluster.py +144 -0
- gammapy-2.2/gammapy/utils/coordinates/other.py +103 -0
- gammapy-2.2/gammapy/utils/coordinates/tests/__init__.py +1 -0
- gammapy-2.2/gammapy/utils/gauss.py +337 -0
- gammapy-2.2/gammapy/utils/observers.py +116 -0
- gammapy-2.2/gammapy/utils/pbar.py +44 -0
- gammapy-2.2/gammapy/utils/random/__init__.py +26 -0
- gammapy-2.2/gammapy/utils/random/tests/__init__.py +1 -0
- gammapy-2.2/gammapy/utils/random/utils.py +289 -0
- gammapy-2.2/gammapy/utils/regions.py +664 -0
- gammapy-2.2/gammapy/utils/scripts.py +446 -0
- gammapy-2.2/gammapy/utils/testing.py +280 -0
- gammapy-2.2/gammapy/utils/tests/__init__.py +1 -0
- gammapy-2.2/gammapy/utils/tests/test_regions.py +367 -0
- gammapy-2.2/gammapy/utils/tests/test_roots.py +49 -0
- gammapy-2.2/gammapy/utils/tests/test_testing.py +19 -0
- gammapy-2.2/gammapy/utils/time.py +217 -0
- gammapy-2.2/gammapy/utils/types.py +210 -0
- gammapy-2.2/gammapy/utils/units.py +125 -0
- gammapy-2.2/gammapy/version.py +8 -0
- gammapy-2.2/gammapy/visualization/__init__.py +31 -0
- gammapy-2.2/gammapy/visualization/catalogs.py +231 -0
- gammapy-2.2/gammapy/visualization/cmap.py +134 -0
- gammapy-2.2/gammapy/visualization/datasets.py +169 -0
- gammapy-2.2/gammapy/visualization/panel.py +115 -0
- gammapy-2.2/gammapy/visualization/plotters/__init__.py +6 -0
- gammapy-2.2/gammapy/visualization/plotters/core.py +42 -0
- gammapy-2.2/gammapy/visualization/plotters/tests/__init__.py +1 -0
- gammapy-2.2/gammapy/visualization/plotters/tests/test_core.py +98 -0
- gammapy-2.2/gammapy/visualization/tests/__init__.py +1 -0
- gammapy-2.2/gammapy/visualization/tests/test_catalogs.py +60 -0
- gammapy-2.2/gammapy/visualization/tests/test_violin.py +322 -0
- gammapy-2.2/gammapy/visualization/utils.py +442 -0
- gammapy-2.2/gammapy/visualization/violin.py +376 -0
- gammapy-2.2/gammapy/workflow/__init__.py +32 -0
- gammapy-2.2/gammapy/workflow/tests/__init__.py +1 -0
- gammapy-2.2/gammapy.egg-info/PKG-INFO +94 -0
- gammapy-2.2/gammapy.egg-info/SOURCES.txt +858 -0
- gammapy-2.2/gammapy.egg-info/entry_points.txt +8 -0
- gammapy-2.2/gammapy.egg-info/requires.txt +79 -0
- gammapy-2.2/gammapy.egg-info/scm_file_list.json +852 -0
- gammapy-2.2/gammapy.egg-info/scm_version.json +8 -0
- gammapy-2.2/pyproject.toml +262 -0
- gammapy-2.2/tox.ini +113 -0
- gammapy-2.1/.github/PULL_REQUEST_TEMPLATE.md +0 -22
- gammapy-2.1/.github/workflows/cffconvert.yml +0 -52
- gammapy-2.1/.github/workflows/changelog.yml +0 -45
- gammapy-2.1/.github/workflows/ci.yml +0 -175
- gammapy-2.1/.github/workflows/doctests.yml +0 -29
- gammapy-2.1/.github/workflows/linkcheck.yml +0 -38
- gammapy-2.1/.github/workflows/nightly_builds.yml +0 -16
- gammapy-2.1/.github/workflows/release.yml +0 -57
- gammapy-2.1/.github/workflows/sonar.yml +0 -112
- gammapy-2.1/.github/workflows/tutorialjupytexttests.yml +0 -39
- gammapy-2.1/.mailmap +0 -186
- gammapy-2.1/.zenodo.json +0 -164
- gammapy-2.1/CITATION.cff +0 -175
- gammapy-2.1/Makefile +0 -113
- gammapy-2.1/PKG-INFO +0 -90
- gammapy-2.1/README.rst +0 -97
- gammapy-2.1/codemeta.json +0 -358
- gammapy-2.1/dev/authors.py +0 -154
- gammapy-2.1/dev/codemeta.py +0 -82
- gammapy-2.1/dev/codespell/ignore-words.txt +0 -16
- gammapy-2.1/dev/github_summary.py +0 -183
- gammapy-2.1/dev/ipynb_to_gallery.py +0 -65
- gammapy-2.1/dev/prepare-release.py +0 -37
- gammapy-2.1/docs/conf.py +0 -342
- gammapy-2.1/docs/development/dev_howto.rst +0 -987
- gammapy-2.1/docs/development/doc_howto.rst +0 -469
- gammapy-2.1/docs/development/index.rst +0 -44
- gammapy-2.1/docs/development/intro.rst +0 -330
- gammapy-2.1/docs/development/pigs/index.rst +0 -48
- gammapy-2.1/docs/development/release.rst +0 -274
- gammapy-2.1/docs/getting-started/environments.rst +0 -107
- gammapy-2.1/docs/getting-started/index.rst +0 -154
- gammapy-2.1/docs/getting-started/install.rst +0 -142
- gammapy-2.1/docs/getting-started/quickstart.rst +0 -84
- gammapy-2.1/docs/index.rst +0 -162
- gammapy-2.1/docs/references.txt +0 -143
- gammapy-2.1/docs/release-notes/index.rst +0 -255
- gammapy-2.1/docs/release-notes/v2.2.rst +0 -8
- gammapy-2.1/docs/sphinxext.py +0 -101
- gammapy-2.1/docs/user-guide/astro/darkmatter/index.rst +0 -111
- gammapy-2.1/docs/user-guide/astro/population/plot_velocity_distributions.py +0 -29
- gammapy-2.1/docs/user-guide/astro/source/plot_pulsar_spindown.py +0 -17
- gammapy-2.1/docs/user-guide/catalog.rst +0 -39
- gammapy-2.1/docs/user-guide/datasets/index.rst +0 -258
- gammapy-2.1/docs/user-guide/howto.rst +0 -405
- gammapy-2.1/docs/user-guide/makers/make_rectangular_reflected_background.py +0 -47
- gammapy-2.1/docs/user-guide/modeling.rst +0 -141
- gammapy-2.1/docs/user-guide/stats/fit_statistics.rst +0 -157
- gammapy-2.1/environment-dev.yml +0 -90
- gammapy-2.1/examples/models/spatial/plot_disk.py +0 -126
- gammapy-2.1/examples/models/spatial/plot_template.py +0 -42
- gammapy-2.1/examples/models/spectral/plot_broken_powerlaw.py +0 -45
- gammapy-2.1/examples/models/spectral/plot_constant_spectral.py +0 -34
- gammapy-2.1/examples/models/spectral/plot_smooth_broken_powerlaw.py +0 -44
- gammapy-2.1/examples/tutorials/analysis-1d/cta_sensitivity.py +0 -277
- gammapy-2.1/examples/tutorials/analysis-1d/spectral_analysis.py +0 -579
- gammapy-2.1/examples/tutorials/analysis-1d/spectral_analysis_hli.py +0 -474
- gammapy-2.1/examples/tutorials/analysis-3d/analysis_3d.py +0 -480
- gammapy-2.1/examples/tutorials/analysis-3d/cta_data_analysis.py +0 -396
- gammapy-2.1/examples/tutorials/analysis-3d/event_sampling.py +0 -501
- gammapy-2.1/examples/tutorials/analysis-3d/event_sampling_nrg_depend_models.py +0 -353
- gammapy-2.1/examples/tutorials/analysis-3d/non_detected_source.py +0 -275
- gammapy-2.1/examples/tutorials/analysis-time/light_curve_flare.py +0 -330
- gammapy-2.1/examples/tutorials/analysis-time/light_curve_simulation.py +0 -356
- gammapy-2.1/examples/tutorials/astrophysics/astro_dark_matter.py +0 -265
- gammapy-2.1/examples/tutorials/astrophysics/energy_dependent_estimation.py +0 -244
- gammapy-2.1/examples/tutorials/data/cta.py +0 -441
- gammapy-2.1/examples/tutorials/data/fermi_lat.py +0 -599
- gammapy-2.1/examples/tutorials/data/hawc.py +0 -288
- gammapy-2.1/examples/tutorials/details/datasets.py +0 -582
- gammapy-2.1/examples/tutorials/details/estimators.py +0 -300
- gammapy-2.1/examples/tutorials/details/fitting.py +0 -524
- gammapy-2.1/examples/tutorials/details/irfs.py +0 -519
- gammapy-2.1/examples/tutorials/details/maps.py +0 -1071
- gammapy-2.1/examples/tutorials/details/mask_maps.py +0 -471
- gammapy-2.1/examples/tutorials/details/nested_sampling_Crab.py +0 -574
- gammapy-2.1/examples/tutorials/details/observation_clustering.py +0 -241
- gammapy-2.1/examples/tutorials/details/priors.py +0 -513
- gammapy-2.1/examples/tutorials/starting/analysis_1.py +0 -448
- gammapy-2.1/gammapy/__main__.py +0 -14
- gammapy-2.1/gammapy/analysis/config.py +0 -559
- gammapy-2.1/gammapy/astro/darkmatter/__init__.py +0 -35
- gammapy-2.1/gammapy/astro/darkmatter/profiles.py +0 -371
- gammapy-2.1/gammapy/astro/darkmatter/spectra.py +0 -485
- gammapy-2.1/gammapy/astro/darkmatter/tests/test_profiles.py +0 -23
- gammapy-2.1/gammapy/astro/darkmatter/tests/test_spectra.py +0 -129
- gammapy-2.1/gammapy/astro/darkmatter/tests/test_utils.py +0 -70
- gammapy-2.1/gammapy/astro/darkmatter/utils.py +0 -148
- gammapy-2.1/gammapy/astro/population/simulate.py +0 -487
- gammapy-2.1/gammapy/astro/source/__init__.py +0 -13
- gammapy-2.1/gammapy/astro/source/pulsar.py +0 -198
- gammapy-2.1/gammapy/astro/source/pwn.py +0 -130
- gammapy-2.1/gammapy/astro/source/snr.py +0 -323
- gammapy-2.1/gammapy/catalog/__init__.py +0 -80
- gammapy-2.1/gammapy/catalog/core.py +0 -340
- gammapy-2.1/gammapy/catalog/fermi.py +0 -2130
- gammapy-2.1/gammapy/catalog/gammacat.py +0 -379
- gammapy-2.1/gammapy/catalog/hawc.py +0 -339
- gammapy-2.1/gammapy/catalog/hess.py +0 -1016
- gammapy-2.1/gammapy/catalog/tests/test_fermi.py +0 -1017
- gammapy-2.1/gammapy/data/data_store.py +0 -885
- gammapy-2.1/gammapy/data/event_list.py +0 -1097
- gammapy-2.1/gammapy/data/filters.py +0 -127
- gammapy-2.1/gammapy/data/gti.py +0 -510
- gammapy-2.1/gammapy/data/io.py +0 -260
- gammapy-2.1/gammapy/data/ivoa.py +0 -379
- gammapy-2.1/gammapy/data/obs_table.py +0 -407
- gammapy-2.1/gammapy/data/observations.py +0 -985
- gammapy-2.1/gammapy/data/pointing.py +0 -581
- gammapy-2.1/gammapy/data/tests/test_ivoa.py +0 -46
- gammapy-2.1/gammapy/data/tests/test_obs_table.py +0 -323
- gammapy-2.1/gammapy/data/tests/test_pointing.py +0 -316
- gammapy-2.1/gammapy/datasets/actors.py +0 -241
- gammapy-2.1/gammapy/datasets/core.py +0 -663
- gammapy-2.1/gammapy/datasets/evaluator.py +0 -590
- gammapy-2.1/gammapy/datasets/flux_points.py +0 -634
- gammapy-2.1/gammapy/datasets/io.py +0 -701
- gammapy-2.1/gammapy/datasets/map.py +0 -3426
- gammapy-2.1/gammapy/datasets/metadata.py +0 -100
- gammapy-2.1/gammapy/datasets/simulate.py +0 -686
- gammapy-2.1/gammapy/datasets/spectrum.py +0 -533
- gammapy-2.1/gammapy/datasets/tests/test_datasets.py +0 -299
- gammapy-2.1/gammapy/datasets/tests/test_flux_points.py +0 -249
- gammapy-2.1/gammapy/datasets/tests/test_map.py +0 -2556
- gammapy-2.1/gammapy/datasets/tests/test_metadata.py +0 -111
- gammapy-2.1/gammapy/datasets/tests/test_simulate.py +0 -1014
- gammapy-2.1/gammapy/datasets/tests/test_spectrum.py +0 -1327
- gammapy-2.1/gammapy/datasets/tests/test_utils.py +0 -311
- gammapy-2.1/gammapy/datasets/utils.py +0 -501
- gammapy-2.1/gammapy/estimators/__init__.py +0 -53
- gammapy-2.1/gammapy/estimators/core.py +0 -100
- gammapy-2.1/gammapy/estimators/energydependentmorphology.py +0 -336
- gammapy-2.1/gammapy/estimators/map/asmooth.py +0 -317
- gammapy-2.1/gammapy/estimators/map/core.py +0 -1319
- gammapy-2.1/gammapy/estimators/map/excess.py +0 -491
- gammapy-2.1/gammapy/estimators/map/tests/test_excess.py +0 -478
- gammapy-2.1/gammapy/estimators/map/tests/test_ts.py +0 -904
- gammapy-2.1/gammapy/estimators/map/ts.py +0 -1133
- gammapy-2.1/gammapy/estimators/parameter.py +0 -499
- gammapy-2.1/gammapy/estimators/points/__init__.py +0 -15
- gammapy-2.1/gammapy/estimators/points/core.py +0 -931
- gammapy-2.1/gammapy/estimators/points/lightcurve.py +0 -264
- gammapy-2.1/gammapy/estimators/points/profile.py +0 -202
- gammapy-2.1/gammapy/estimators/points/sed.py +0 -671
- gammapy-2.1/gammapy/estimators/points/tests/test_collection.py +0 -265
- gammapy-2.1/gammapy/estimators/points/tests/test_lightcurve.py +0 -886
- gammapy-2.1/gammapy/estimators/points/tests/test_sed.py +0 -901
- gammapy-2.1/gammapy/estimators/points/tests/test_sensitivity.py +0 -140
- gammapy-2.1/gammapy/estimators/profile.py +0 -414
- gammapy-2.1/gammapy/estimators/tests/test_energydependentmorphology.py +0 -104
- gammapy-2.1/gammapy/estimators/tests/test_parameter_estimator.py +0 -102
- gammapy-2.1/gammapy/estimators/tests/test_utils.py +0 -308
- gammapy-2.1/gammapy/estimators/utils.py +0 -1504
- gammapy-2.1/gammapy/irf/background.py +0 -552
- gammapy-2.1/gammapy/irf/core.py +0 -1066
- gammapy-2.1/gammapy/irf/edisp/core.py +0 -320
- gammapy-2.1/gammapy/irf/edisp/kernel.py +0 -683
- gammapy-2.1/gammapy/irf/edisp/map.py +0 -585
- gammapy-2.1/gammapy/irf/edisp/tests/test_kernel.py +0 -154
- gammapy-2.1/gammapy/irf/edisp/tests/test_map.py +0 -346
- gammapy-2.1/gammapy/irf/effective_area.py +0 -289
- gammapy-2.1/gammapy/irf/psf/core.py +0 -309
- gammapy-2.1/gammapy/irf/psf/map.py +0 -749
- gammapy-2.1/gammapy/irf/psf/parametric.py +0 -451
- gammapy-2.1/gammapy/irf/psf/table.py +0 -40
- gammapy-2.1/gammapy/irf/psf/tests/test_map.py +0 -604
- gammapy-2.1/gammapy/irf/psf/tests/test_table.py +0 -99
- gammapy-2.1/gammapy/irf/tests/test_background.py +0 -472
- gammapy-2.1/gammapy/irf/tests/test_core.py +0 -145
- gammapy-2.1/gammapy/irf/tests/test_io.py +0 -217
- gammapy-2.1/gammapy/makers/__init__.py +0 -49
- gammapy-2.1/gammapy/makers/background/__init__.py +0 -21
- gammapy-2.1/gammapy/makers/background/reflected.py +0 -604
- gammapy-2.1/gammapy/makers/background/ring.py +0 -348
- gammapy-2.1/gammapy/makers/background/tests/test_reflected.py +0 -479
- gammapy-2.1/gammapy/makers/map.py +0 -487
- gammapy-2.1/gammapy/makers/tests/test_asymm_irf.py +0 -144
- gammapy-2.1/gammapy/makers/tests/test_map.py +0 -648
- gammapy-2.1/gammapy/makers/tests/test_utils.py +0 -1004
- gammapy-2.1/gammapy/makers/utils.py +0 -1013
- gammapy-2.1/gammapy/maps/axes.py +0 -3570
- gammapy-2.1/gammapy/maps/coord.py +0 -325
- gammapy-2.1/gammapy/maps/core.py +0 -2136
- gammapy-2.1/gammapy/maps/geom.py +0 -681
- gammapy-2.1/gammapy/maps/hpx/geom.py +0 -1449
- gammapy-2.1/gammapy/maps/measure.py +0 -119
- gammapy-2.1/gammapy/maps/region/geom.py +0 -922
- gammapy-2.1/gammapy/maps/region/tests/test_ndmap.py +0 -436
- gammapy-2.1/gammapy/maps/tests/test_axes.py +0 -1170
- gammapy-2.1/gammapy/maps/wcs/geom.py +0 -1282
- gammapy-2.1/gammapy/maps/wcs/ndmap.py +0 -1179
- gammapy-2.1/gammapy/maps/wcs/tests/test_geom.py +0 -759
- gammapy-2.1/gammapy/maps/wcs/tests/test_ndmap.py +0 -1167
- gammapy-2.1/gammapy/modeling/__init__.py +0 -25
- gammapy-2.1/gammapy/modeling/covariance.py +0 -278
- gammapy-2.1/gammapy/modeling/fit.py +0 -889
- gammapy-2.1/gammapy/modeling/iminuit.py +0 -232
- gammapy-2.1/gammapy/modeling/models/__init__.py +0 -223
- gammapy-2.1/gammapy/modeling/models/core.py +0 -1395
- gammapy-2.1/gammapy/modeling/models/prior.py +0 -286
- gammapy-2.1/gammapy/modeling/models/spatial.py +0 -1878
- gammapy-2.1/gammapy/modeling/models/spectral.py +0 -2783
- gammapy-2.1/gammapy/modeling/models/spectral_cosmic_ray.py +0 -96
- gammapy-2.1/gammapy/modeling/models/temporal.py +0 -1260
- gammapy-2.1/gammapy/modeling/models/tests/data/examples.yaml +0 -181
- gammapy-2.1/gammapy/modeling/models/tests/data/make.py +0 -112
- gammapy-2.1/gammapy/modeling/models/tests/test_prior.py +0 -202
- gammapy-2.1/gammapy/modeling/models/tests/test_spatial.py +0 -901
- gammapy-2.1/gammapy/modeling/models/tests/test_spectral.py +0 -1474
- gammapy-2.1/gammapy/modeling/models/tests/test_temporal.py +0 -585
- gammapy-2.1/gammapy/modeling/parameter.py +0 -1054
- gammapy-2.1/gammapy/modeling/sampler.py +0 -263
- gammapy-2.1/gammapy/modeling/selection/bayesian.py +0 -542
- gammapy-2.1/gammapy/modeling/selection/inference_data.py +0 -342
- gammapy-2.1/gammapy/modeling/selection/tests/test_bayesian.py +0 -105
- gammapy-2.1/gammapy/modeling/selection/tests/test_inference_data.py +0 -190
- gammapy-2.1/gammapy/modeling/tests/test_covariance.py +0 -75
- gammapy-2.1/gammapy/modeling/tests/test_fit.py +0 -469
- gammapy-2.1/gammapy/modeling/tests/test_sampler.py +0 -168
- gammapy-2.1/gammapy/scripts/check.py +0 -26
- gammapy-2.1/gammapy/scripts/tests/test_workflow.py +0 -31
- gammapy-2.1/gammapy/scripts/tutorial_info.py +0 -34
- gammapy-2.1/gammapy/stats/fit_statistics.py +0 -640
- gammapy-2.1/gammapy/stats/fit_statistics_cython.c +0 -13738
- gammapy-2.1/gammapy/stats/tests/test_utils.py +0 -32
- gammapy-2.1/gammapy/stats/tests/test_variability.py +0 -366
- gammapy-2.1/gammapy/stats/utils.py +0 -89
- gammapy-2.1/gammapy/stats/variability.py +0 -509
- gammapy-2.1/gammapy/utils/array.py +0 -187
- gammapy-2.1/gammapy/utils/cache.py +0 -152
- gammapy-2.1/gammapy/utils/cluster.py +0 -147
- gammapy-2.1/gammapy/utils/coordinates/other.py +0 -102
- gammapy-2.1/gammapy/utils/gauss.py +0 -336
- gammapy-2.1/gammapy/utils/observers.py +0 -116
- gammapy-2.1/gammapy/utils/pbar.py +0 -43
- gammapy-2.1/gammapy/utils/random/__init__.py +0 -25
- gammapy-2.1/gammapy/utils/random/utils.py +0 -289
- gammapy-2.1/gammapy/utils/regions.py +0 -477
- gammapy-2.1/gammapy/utils/scripts.py +0 -446
- gammapy-2.1/gammapy/utils/testing.py +0 -257
- gammapy-2.1/gammapy/utils/tests/test_regions.py +0 -226
- gammapy-2.1/gammapy/utils/tests/test_roots.py +0 -50
- gammapy-2.1/gammapy/utils/time.py +0 -216
- gammapy-2.1/gammapy/utils/types.py +0 -209
- gammapy-2.1/gammapy/utils/units.py +0 -125
- gammapy-2.1/gammapy/version.py +0 -8
- gammapy-2.1/gammapy/visualization/__init__.py +0 -29
- gammapy-2.1/gammapy/visualization/cmap.py +0 -133
- gammapy-2.1/gammapy/visualization/datasets.py +0 -163
- gammapy-2.1/gammapy/visualization/panel.py +0 -115
- gammapy-2.1/gammapy/visualization/tests/test_violin.py +0 -193
- gammapy-2.1/gammapy/visualization/utils.py +0 -434
- gammapy-2.1/gammapy/visualization/violin.py +0 -328
- gammapy-2.1/gammapy/workflow/__init__.py +0 -31
- gammapy-2.1/gammapy.egg-info/PKG-INFO +0 -90
- gammapy-2.1/gammapy.egg-info/SOURCES.txt +0 -768
- gammapy-2.1/gammapy.egg-info/entry_points.txt +0 -2
- gammapy-2.1/gammapy.egg-info/requires.txt +0 -69
- gammapy-2.1/pyproject.toml +0 -210
- gammapy-2.1/tox.ini +0 -113
- {gammapy-2.1 → gammapy-2.2}/.codacy.yml +0 -0
- {gammapy-2.1 → gammapy-2.2}/.coveragerc +0 -0
- {gammapy-2.1 → gammapy-2.2}/.editorconfig +0 -0
- {gammapy-2.1 → gammapy-2.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {gammapy-2.1 → gammapy-2.2}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {gammapy-2.1 → gammapy-2.2}/.github/dependabot.yml +0 -0
- {gammapy-2.1 → gammapy-2.2}/.github/workflows/dispatch_benchmark.yml +0 -0
- {gammapy-2.1 → gammapy-2.2}/.github/workflows/greetings.yml +0 -0
- {gammapy-2.1 → gammapy-2.2}/.gitignore +0 -0
- {gammapy-2.1 → gammapy-2.2}/.pre-commit-config.yaml +0 -0
- {gammapy-2.1 → gammapy-2.2}/CODE_OF_CONDUCT.md +0 -0
- {gammapy-2.1 → gammapy-2.2}/CONTRIBUTING.md +0 -0
- {gammapy-2.1 → gammapy-2.2}/LICENSE.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/LONG_DESCRIPTION.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/MANIFEST.in +0 -0
- {gammapy-2.1 → gammapy-2.2}/dev/README.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/dev/codespell/exclude-file.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/Makefile +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/_static/1d-analysis-image.png +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/_static/2d-analysis-image.png +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/_static/3d-analysis-image.png +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/_static/DC1_3d.png +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/_static/cornerplot-multiple-runs-Crab.png +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/_static/custom.css +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/_static/data-flow-gammapy.png +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/_static/gammapy_banner.png +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/_static/gammapy_banner_white.png +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/_static/gammapy_logo.ico +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/_static/gammapy_logo.png +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/_static/gammapy_logo_nav.png +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/_static/gammapy_maps.png +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/_static/hgps_map_background_estimation.png +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/_static/hgps_spectrum_background_estimation.png +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/_static/matomo.js +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/_templates/custom-footer.html +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/api-reference/analysis.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/api-reference/astro.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/api-reference/catalog.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/api-reference/data.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/api-reference/datasets.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/api-reference/estimators.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/api-reference/index.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/api-reference/irf.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/api-reference/makers.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/api-reference/maps.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/api-reference/modeling.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/api-reference/scripts.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/api-reference/stats.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/api-reference/utils.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/api-reference/visualization.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/binder/requirements.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/binder/runtime.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/dependencies.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-001.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-002.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-003.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-004.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-005.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-006-class-diagram.png +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-006.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-007.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-008.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-009.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-010.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-011.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-012.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-013.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-014.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-016-gammapy-package-organisation-proposal.png +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-016-gammapy-package-organisation-status.png +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-016.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-017.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-018.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-019.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-020.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-021.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-022.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-023.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-024.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-025.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-026.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-027-Landscape-Crab-NestedSampling-MCMC.png +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-027.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/pigs/pig-028.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/development/setup.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/getting-started/troubleshooting.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/getting-started/usage.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/make.bat +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/nitpick-exceptions +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/template.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.1.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.10.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.11.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.12.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.13.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.14.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.15.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.16.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.17.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.18.1.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.18.2.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.18.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.19.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.2.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.20.1.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.20.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.3.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.4.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.5.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.6.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.7.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.8.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v0.9.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v1.0.1.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v1.0.2.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v1.0.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v1.1.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v1.2.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v1.3.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v2.0.1.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v2.0.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/release-notes/v2.1.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/serve.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/astro/index.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/astro/population/index.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/astro/population/plot_radial_distributions.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/astro/population/plot_spiral_arm_models.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/astro/population/plot_spiral_arms.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/astro/source/index.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/astro/source/plot_pwn_evolution.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/astro/source/plot_snr_brightness_evolution.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/astro/source/plot_snr_radius_evolution.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/astro/source/pulsar.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/astro/source/pwn.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/astro/source/snr.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/datasets/plot_stack.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/dl3.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/estimators.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/hli.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/index.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/irf/aeff.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/irf/bkg.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/irf/edisp.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/irf/index.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/irf/plot_aeff.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/irf/plot_aeff_param.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/irf/plot_bkg_3d.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/irf/plot_edisp.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/irf/plot_edisp_kernel.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/irf/plot_edisp_kernel_param.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/irf/plot_fermi_psf.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/irf/plot_psf.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/irf/psf.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/makers/create_region.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/makers/fov.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/makers/index.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/makers/make_reflected_regions.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/makers/reflected.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/makers/ring.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/maps/hpxmap.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/maps/index.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/maps/regionmap.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/package.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/references.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/scripts/index.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/scripts/significance.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/stats/index.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/stats/plot_cash_errors.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/stats/plot_cash_significance.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/stats/plot_wstat_errors.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/stats/plot_wstat_significance.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/stats/wstat_derivation.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/utils.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/visualization/colormap_example.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/docs/user-guide/visualization/index.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/README.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/README.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spatial/README.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spatial/plot_constant.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spatial/plot_gauss.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spatial/plot_gen_gauss.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spatial/plot_piecewise_norm_spatial.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spatial/plot_point.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spatial/plot_shell.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spatial/plot_shell2.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spectral/README.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spectral/plot_absorbed.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spectral/plot_compound.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spectral/plot_exp_cutoff_powerlaw.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spectral/plot_exp_cutoff_powerlaw_3fgl.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spectral/plot_exp_cutoff_powerlaw_norm_spectral.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spectral/plot_gauss_spectral.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spectral/plot_logparabola.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spectral/plot_logparabola2.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spectral/plot_logparabola_norm_spectral.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spectral/plot_naima.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spectral/plot_piecewise_norm_spectral.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spectral/plot_powerlaw.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spectral/plot_powerlaw2.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spectral/plot_powerlaw_norm_spectral.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spectral/plot_super_exp_cutoff_powerlaw_3fgl.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spectral/plot_super_exp_cutoff_powerlaw_4fgl.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spectral/plot_super_exp_cutoff_powerlaw_4fgl_dr1.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/spectral/plot_template_spectral.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/temporal/README.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/temporal/plot_constant_temporal.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/temporal/plot_expdecay_temporal.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/temporal/plot_gaussian_temporal.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/temporal/plot_generalized_gaussian_temporal.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/temporal/plot_linear_temporal.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/temporal/plot_powerlaw_temporal.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/temporal/plot_sine_temporal.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/temporal/plot_template_phase_temporal.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/models/temporal/plot_template_temporal.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/README.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/analysis-1d/README.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/analysis-1d/extended_source_spectral_analysis.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/analysis-1d/sed_fitting.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/analysis-1d/spectrum_simulation.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/analysis-2d/README.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/analysis-2d/detect.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/analysis-2d/modeling_2D.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/analysis-2d/ring_background.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/analysis-3d/README.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/analysis-3d/analysis_mwl.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/analysis-3d/flux_profiles.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/analysis-3d/simulate_3d.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/analysis-time/README.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/analysis-time/light_curve.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/analysis-time/time_resolved_spectroscopy.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/analysis-time/variability_estimation.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/astrophysics/README.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/astrophysics/ebl.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/astrophysics/pulsar_analysis.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/data/README.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/data/hess.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/data/magic.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/data/veritas.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/details/README.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/details/catalog.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/details/makers.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/details/model_management.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/details/models.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/details/parameter_ul.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/details/theta_square_plot.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/model-gallery/README.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/scripts/README.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/scripts/survey_map.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/scripts/survey_map.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/starting/README.rst +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/starting/analysis_2.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/examples/tutorials/starting/overview.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/CITATION +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/analysis/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/analysis/config/docs.yaml +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/analysis/config/example-1d.yaml +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/analysis/config/example-3d.yaml +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/analysis/config/model-1d.yaml +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/analysis/config/model.yaml +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/analysis/core.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/analysis/tests/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/analysis/tests/test_analysis.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/analysis/tests/test_config.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/astro/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/astro/darkmatter/tests/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/astro/population/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/astro/population/spatial.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/astro/population/tests/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/astro/population/tests/test_simulate.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/astro/population/tests/test_spatial.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/astro/population/tests/test_velocity.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/astro/population/velocity.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/astro/source/tests/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/astro/source/tests/test_pulsar.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/astro/source/tests/test_pwn.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/astro/source/tests/test_snr.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/lhaaso.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/2fhl_j0822.6-4250e.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/2fhl_j1445.1-0329.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/2hwc_j0534+220.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/2hwc_j0631+169.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/2pc_j0034-0534.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/2pc_j1112-6103.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/3fgl_J0000.1+6545.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/3fgl_J0001.4+2120.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/3fgl_J0023.4+0923.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/3fgl_J0835.3-4510.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/3fhl_j2301.9+5855e.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/3pc_j0834-4159.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/3pc_j0835-4510.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/3pc_j0940-5428.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/4fgl-dr4_J0534.5+2200.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/4fgl_J0000.3-7355.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/4fgl_J0001.5+2113.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/4fgl_J0002.8+6217.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/4fgl_J1409.1-6121e.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/gammacat_hess_j1813-178.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/gammacat_hess_j1848-018.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/gammacat_vela_x.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/hess_j1713-397.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/hess_j1825-137.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/hess_j1930+188.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/data/make.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/test_core.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/test_gammacat.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/test_hawc.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/test_hess.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/catalog/tests/test_lhaaso.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/conftest.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/data/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/data/hdu_index_table.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/data/metadata.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/data/simulate.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/data/tests/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/data/tests/test_data_store.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/data/tests/test_event_list.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/data/tests/test_filters.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/data/tests/test_gti.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/data/tests/test_hdu_index_table.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/data/tests/test_io.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/data/tests/test_metadata.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/data/tests/test_observations.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/data/tests/test_observers.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/data/tests/test_simulate.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/data/utils.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/datasets/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/datasets/tests/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/datasets/tests/test_evaluator.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/datasets/tests/test_io.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/estimators/flux.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/estimators/map/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/estimators/map/tests/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/estimators/map/tests/test_asmooth.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/estimators/map/tests/test_core.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/estimators/metadata.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/estimators/points/sensitivity.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/estimators/points/tests/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/estimators/points/tests/test_core.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/estimators/points/tests/test_profile.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/estimators/tests/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/estimators/tests/test_core.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/estimators/tests/test_flux.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/estimators/tests/test_metadata.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/estimators/tests/test_profile.py +0 -0
- {gammapy-2.1/gammapy/irf/edisp/tests → gammapy-2.2/gammapy/io}/__init__.py +0 -0
- {gammapy-2.1/gammapy/irf/psf/tests → gammapy-2.2/gammapy/io/asdf}/__init__.py +0 -0
- {gammapy-2.1/gammapy/irf/tests → gammapy-2.2/gammapy/io/asdf/converters}/__init__.py +0 -0
- {gammapy-2.1/gammapy/makers/background/tests → gammapy-2.2/gammapy/io/asdf/converters/data}/__init__.py +0 -0
- {gammapy-2.1/gammapy/makers → gammapy-2.2/gammapy/io/asdf/converters/data}/tests/__init__.py +0 -0
- {gammapy-2.1/gammapy/maps/hpx/tests → gammapy-2.2/gammapy/io/asdf/converters/datasets}/__init__.py +0 -0
- {gammapy-2.1/gammapy/maps/region → gammapy-2.2/gammapy/io/asdf/converters/datasets}/tests/__init__.py +0 -0
- {gammapy-2.1/gammapy/maps/tests → gammapy-2.2/gammapy/io/asdf/converters/irf}/__init__.py +0 -0
- {gammapy-2.1/gammapy/maps/wcs/tests → gammapy-2.2/gammapy/io/asdf/converters/irf/edisp}/__init__.py +0 -0
- {gammapy-2.1/gammapy/modeling/models → gammapy-2.2/gammapy/io/asdf/converters/irf/edisp}/tests/__init__.py +0 -0
- {gammapy-2.1/gammapy/modeling/selection/tests → gammapy-2.2/gammapy/io/asdf/converters/irf/psf}/__init__.py +0 -0
- {gammapy-2.1/gammapy/modeling → gammapy-2.2/gammapy/io/asdf/converters/irf/psf}/tests/__init__.py +0 -0
- {gammapy-2.1/gammapy/scripts/tests → gammapy-2.2/gammapy/io/asdf/converters/maps}/__init__.py +0 -0
- {gammapy-2.1/gammapy/stats → gammapy-2.2/gammapy/io/asdf/converters/maps}/tests/__init__.py +0 -0
- {gammapy-2.1/gammapy/utils/coordinates/tests → gammapy-2.2/gammapy/io/asdf/converters/modeling/models}/__init__.py +0 -0
- {gammapy-2.1/gammapy/utils/random → gammapy-2.2/gammapy/io/asdf/converters/modeling/models}/tests/__init__.py +0 -0
- {gammapy-2.1/gammapy/utils/tests → gammapy-2.2/gammapy/io/asdf/resources}/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/irf/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/irf/edisp/__init__.py +0 -0
- {gammapy-2.1/gammapy/visualization → gammapy-2.2/gammapy/irf/edisp}/tests/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/irf/edisp/tests/test_core.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/irf/io.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/irf/psf/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/irf/psf/kernel.py +0 -0
- {gammapy-2.1/gammapy/workflow → gammapy-2.2/gammapy/irf/psf}/tests/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/irf/psf/tests/data/psf_info.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/irf/psf/tests/test_kernel.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/irf/psf/tests/test_parametric.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/irf/rad_max.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/irf/tests/test_effective_area.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/irf/tests/test_gadf.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/irf/tests/test_rad_max.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/makers/background/fov.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/makers/background/phase.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/makers/background/tests/test_fov.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/makers/background/tests/test_phase.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/makers/background/tests/test_ring.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/makers/core.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/makers/reduce.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/makers/safe.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/makers/spectrum.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/makers/tests/test_core.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/makers/tests/test_reduce.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/makers/tests/test_safe.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/makers/tests/test_spectrum.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/hpx/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/hpx/core.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/hpx/io.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/hpx/ndmap.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/hpx/tests/test_geom.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/hpx/tests/test_ndmap.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/hpx/utils.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/io.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/maps.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/region/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/region/ndmap.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/region/tests/test_geom.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/tests/test_coord.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/tests/test_core.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/tests/test_counts.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/tests/test_maps.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/tests/test_measure.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/utils.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/wcs/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/wcs/core.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/maps/wcs/io.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/likelihood.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/models/cube.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/models/spectral_crab.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/models/tests/data/example2.yaml +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/models/tests/test_core.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/models/tests/test_cube.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/models/tests/test_io.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/models/tests/test_management.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/models/tests/test_spectral_cosmic_ray.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/models/tests/test_spectral_crab.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/models/tests/test_utils.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/models/utils.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/scipy.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/selection/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/selection/nested.py +0 -0
- /gammapy-2.1/gammapy/modeling/tests/test_selection.py → /gammapy-2.2/gammapy/modeling/selection/tests/test_nested.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/sherpa.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/tests/test_iminuit.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/tests/test_parameter.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/tests/test_scipy.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/tests/test_sherpa.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/modeling/utils.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/scripts/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/scripts/analysis.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/scripts/download.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/scripts/info.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/scripts/main.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/scripts/tests/test_analysis.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/scripts/tests/test_download.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/scripts/tests/test_info.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/scripts/tests/test_main.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/scripts/tests/test_tutorial_info.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/scripts/workflow.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/stats/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/stats/counts_statistic.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/stats/fit_statistics_cython.pyx +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/stats/fit_statistics_jit.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/stats/tests/test_counts_statistic.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/stats/tests/test_fit_statistics.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/tests/test_init.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/check.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/compat.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/compilation.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/coordinates/__init__.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/coordinates/fov.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/coordinates/tests/test_fov.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/coordinates/tests/test_other.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/deprecation.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/docs.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/fits.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/integrate.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/interpolation.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/metadata.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/parallel.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/random/inverse_cdf.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/random/tests/test_inverse_cdf.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/random/tests/test_random.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/registry.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/roots.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/table.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/tests/test_array.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/tests/test_cache.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/tests/test_check.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/tests/test_deprecation.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/tests/test_fits.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/tests/test_gauss.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/tests/test_integrate.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/tests/test_interpolation.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/tests/test_metadata.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/tests/test_parallel.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/tests/test_scripts.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/tests/test_table.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/tests/test_time.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/utils/tests/test_units.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/visualization/heatmap.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/visualization/tests/test_cmap.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/visualization/tests/test_datasets.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/visualization/tests/test_panel.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/visualization/tests/test_utils.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/workflow/config/docs.yaml +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/workflow/config/example-1d.yaml +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/workflow/config/example-3d.yaml +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/workflow/config/model-1d.yaml +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/workflow/config/model.yaml +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/workflow/config.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/workflow/core.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/workflow/products.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/workflow/steps.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/workflow/tests/test_config.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/workflow/tests/test_products.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy/workflow/tests/test_workflow.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy.egg-info/dependency_links.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/gammapy.egg-info/top_level.txt +0 -0
- {gammapy-2.1 → gammapy-2.2}/setup.cfg +0 -0
- {gammapy-2.1 → gammapy-2.2}/setup.py +0 -0
- {gammapy-2.1 → gammapy-2.2}/sonar-project.properties +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<!-- These are hidden comments. You can leave them or delete them. -->
|
|
2
|
+
|
|
3
|
+
<!-- Don't be shy! Github issues or pull requests are welcome any time. -->
|
|
4
|
+
<!-- But if you first want to chat, use the Gammapy Slack. -->
|
|
5
|
+
<!-- See https://gammapy.org/contact.html -->
|
|
6
|
+
|
|
7
|
+
**Description**
|
|
8
|
+
<!-- What is the motivation for this pull request? -->
|
|
9
|
+
<!-- Briefly: what changes are done here? -->
|
|
10
|
+
<!-- If this is to address a Github issue, mention its number and use the specific keywords to create a link -->
|
|
11
|
+
<!-- See docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue -->
|
|
12
|
+
<!-- Example: This PR is to resolve #42 -->
|
|
13
|
+
|
|
14
|
+
This pull request ...
|
|
15
|
+
|
|
16
|
+
**Dear reviewer**
|
|
17
|
+
<!-- Let the reviewer and Gammapy team know what you want: -->
|
|
18
|
+
<!-- * Is this ready for review? Or is it work in progress and you want some feedback? -->
|
|
19
|
+
<!-- * Do you want to go through review here? Or if someone should just finish this up and merge it? -->
|
|
20
|
+
<!-- Do you have any specific questions, e.g. about API or implementation? -->
|
|
21
|
+
<!-- Do you include a test executing the new code you're adding (to make sure it runs)? -->
|
|
22
|
+
<!-- Do you include some documentation? Is it needed? -->
|
|
23
|
+
|
|
24
|
+
**AI usage disclosure**
|
|
25
|
+
<!-- Please specify if and how AI tool were utilised: -->
|
|
26
|
+
<!-- * Which AI tool or agent was used? -->
|
|
27
|
+
<!-- * What is the type of assistance (i.e. code suggestion, explanation..)? -->
|
|
28
|
+
<!-- * What was the level of human supervision? -->
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
name: cffconvert
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
validate:
|
|
8
|
+
name: "cffconvert"
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- name: Install eossr
|
|
12
|
+
run: |
|
|
13
|
+
pip install eossr
|
|
14
|
+
|
|
15
|
+
- name: Check out a copy of the repository
|
|
16
|
+
uses: actions/checkout@v7
|
|
17
|
+
|
|
18
|
+
- name: Check whether the citation metadata from CITATION.cff is valid
|
|
19
|
+
uses: citation-file-format/cffconvert-github-action@2.0.0
|
|
20
|
+
with:
|
|
21
|
+
args: "--validate"
|
|
22
|
+
|
|
23
|
+
- name: Convert CITATION.cff to Codemeta metadata format
|
|
24
|
+
uses: citation-file-format/cffconvert-github-action@2.0.0
|
|
25
|
+
if: success()
|
|
26
|
+
with:
|
|
27
|
+
args: "--infile ./CITATION.cff --format codemeta --outfile codemeta.json"
|
|
28
|
+
|
|
29
|
+
- name: Fix codemeta.json
|
|
30
|
+
if: success()
|
|
31
|
+
run: |
|
|
32
|
+
cd dev && python codemeta.py
|
|
33
|
+
|
|
34
|
+
- name: Validate codemeta.json
|
|
35
|
+
if: success()
|
|
36
|
+
run: |
|
|
37
|
+
eossr-metadata-validator codemeta.json
|
|
38
|
+
|
|
39
|
+
- name: Convert CodeMeta to Zenodo
|
|
40
|
+
uses: escape2020/codemeta2zenodo@v1.3.0
|
|
41
|
+
if: success()
|
|
42
|
+
with:
|
|
43
|
+
overwrite: true
|
|
44
|
+
|
|
45
|
+
- name: Remove publication_date from .zenodo.json
|
|
46
|
+
if: success()
|
|
47
|
+
run: |
|
|
48
|
+
jq 'del(.publication_date)' .zenodo.json > .zenodo.json.tmp
|
|
49
|
+
mv .zenodo.json.tmp .zenodo.json
|
|
50
|
+
|
|
51
|
+
- name: Validate Zenodo Metadata
|
|
52
|
+
uses: vsoch/zenodo-validator@main
|
|
53
|
+
with:
|
|
54
|
+
path: '.zenodo.json'
|
|
55
|
+
|
|
56
|
+
- name: Open a pull request with updated metadata
|
|
57
|
+
uses: peter-evans/create-pull-request@v8
|
|
58
|
+
with:
|
|
59
|
+
branch: auto/update-citation-metadata
|
|
60
|
+
delete-branch: true
|
|
61
|
+
commit-message: Update codemeta.json and .zenodo.json from CITATION.cff
|
|
62
|
+
title: Update codemeta.json and .zenodo.json
|
|
63
|
+
body: |
|
|
64
|
+
Generated by the `cffconvert` workflow from `CITATION.cff`.
|
|
65
|
+
add-paths: |
|
|
66
|
+
codemeta.json
|
|
67
|
+
.zenodo.json
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
name: Check changelog fragments
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [opened, reopened, labeled, unlabeled, synchronize]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
check-changelog:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
steps:
|
|
12
|
+
- name: Check out repository
|
|
13
|
+
uses: actions/checkout@v7
|
|
14
|
+
with:
|
|
15
|
+
fetch-depth: 0
|
|
16
|
+
|
|
17
|
+
- name: Verify changelog label and fragment
|
|
18
|
+
run: |
|
|
19
|
+
set -euo pipefail
|
|
20
|
+
|
|
21
|
+
# Obtain all labels set to the PR
|
|
22
|
+
labels="${{ join(github.event.pull_request.labels.*.name, ',') }}"
|
|
23
|
+
clabels=",$labels," # wrap with commas for exact matching with grep
|
|
24
|
+
|
|
25
|
+
# If the labels contains feature, bug or api-change then automatically require the 'changelog-required' label
|
|
26
|
+
if echo "$clabels" | grep -Eq ',(feature|bug|api-change),'; then
|
|
27
|
+
if ! echo "$clabels" | grep -q ',changelog-required,'; then
|
|
28
|
+
echo "PR has 'feature', 'bug', or 'api-change' label but is missing 'changelog-required'."
|
|
29
|
+
exit 1
|
|
30
|
+
fi
|
|
31
|
+
fi
|
|
32
|
+
|
|
33
|
+
# Now we look for 'changelog-required' label
|
|
34
|
+
if echo "$clabels" | grep -q ",changelog-required,"; then
|
|
35
|
+
echo "Label 'changelog-required' is set. Checking for fragments in docs/release-notes/*.rst..."
|
|
36
|
+
|
|
37
|
+
if ! git diff --name-only origin/${{ github.base_ref }}... | grep -q '^docs/release-notes/.*\.rst$'; then
|
|
38
|
+
echo "No changelog fragment found in docs/release-notes/"
|
|
39
|
+
exit 1
|
|
40
|
+
fi
|
|
41
|
+
|
|
42
|
+
echo "Changelog fragment found."
|
|
43
|
+
else
|
|
44
|
+
echo "No 'changelog-required' label, skipping this check."
|
|
45
|
+
fi
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
on: [push, pull_request]
|
|
3
|
+
|
|
4
|
+
jobs:
|
|
5
|
+
lint:
|
|
6
|
+
name: Run pre-commit hooks
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
|
|
9
|
+
steps:
|
|
10
|
+
- name: Check out repository
|
|
11
|
+
uses: actions/checkout@v7
|
|
12
|
+
with:
|
|
13
|
+
fetch-depth: 0
|
|
14
|
+
- name: Set up Python
|
|
15
|
+
uses: actions/setup-python@v7
|
|
16
|
+
with:
|
|
17
|
+
python-version: '3.12'
|
|
18
|
+
- name: Install pre-commit
|
|
19
|
+
run: pip install pre-commit
|
|
20
|
+
- name: Run pre-commit
|
|
21
|
+
run: |
|
|
22
|
+
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
|
|
23
|
+
pre-commit run \
|
|
24
|
+
--from-ref "${{ github.event.pull_request.base.sha }}" \
|
|
25
|
+
--to-ref "${{ github.event.pull_request.head.sha }}"
|
|
26
|
+
else # push event
|
|
27
|
+
pre-commit run \
|
|
28
|
+
--from-ref "${{ github.event.before }}" \
|
|
29
|
+
--to-ref "${{ github.event.after }}"
|
|
30
|
+
fi
|
|
31
|
+
ci-runs:
|
|
32
|
+
name: ${{ matrix.os }}, ${{ matrix.tox_env }}
|
|
33
|
+
runs-on: ${{ matrix.os }}
|
|
34
|
+
continue-on-error: ${{ matrix.allowed_fail }}
|
|
35
|
+
if: contains(github.event.pull_request.labels.*.name, 'skip-tests') == false
|
|
36
|
+
env:
|
|
37
|
+
PYTEST_ADDOPTS: --color=yes -n auto --dist=loadscope
|
|
38
|
+
|
|
39
|
+
strategy:
|
|
40
|
+
fail-fast: true
|
|
41
|
+
matrix:
|
|
42
|
+
include:
|
|
43
|
+
- os: ubuntu-latest
|
|
44
|
+
python: '3.13'
|
|
45
|
+
tox_env: 'py313-test-alldeps-cov'
|
|
46
|
+
gammapy_data: true
|
|
47
|
+
allowed_fail: false
|
|
48
|
+
- os: ubuntu-latest
|
|
49
|
+
python: '3.14'
|
|
50
|
+
tox_env: 'py314-test-alldeps'
|
|
51
|
+
gammapy_data: true
|
|
52
|
+
allowed_fail: false
|
|
53
|
+
- os: macos-latest
|
|
54
|
+
python: '3.15'
|
|
55
|
+
tox_env: 'py315-test'
|
|
56
|
+
gammapy_data: true
|
|
57
|
+
allowed_fail: false
|
|
58
|
+
- os: windows-latest
|
|
59
|
+
python: '3.13'
|
|
60
|
+
tox_env: 'py312-test-alldeps_noray'
|
|
61
|
+
gammapy_data: true
|
|
62
|
+
allowed_fail: false
|
|
63
|
+
- os: macos-15
|
|
64
|
+
python: '3.12'
|
|
65
|
+
tox_env: 'py312-test'
|
|
66
|
+
allowed_fail: false
|
|
67
|
+
- os: ubuntu-latest
|
|
68
|
+
python: '3.12'
|
|
69
|
+
tox_env: 'oldestdeps'
|
|
70
|
+
allowed_fail: false
|
|
71
|
+
- os: ubuntu-latest
|
|
72
|
+
python: '3.14'
|
|
73
|
+
tox_env: 'devdeps'
|
|
74
|
+
gammapy_data: true
|
|
75
|
+
allowed_fail: true
|
|
76
|
+
|
|
77
|
+
steps:
|
|
78
|
+
- name: Check out repository
|
|
79
|
+
uses: actions/checkout@v7
|
|
80
|
+
with:
|
|
81
|
+
fetch-depth: 0
|
|
82
|
+
- name: Set up Python ${{ matrix.python }}
|
|
83
|
+
uses: actions/setup-python@v7
|
|
84
|
+
with:
|
|
85
|
+
python-version: ${{ matrix.python }}
|
|
86
|
+
- name: Install FFTW3 (required to build Sherpa)
|
|
87
|
+
if: runner.os == 'Linux'
|
|
88
|
+
run: sudo apt-get update && sudo apt-get install -y libfftw3-dev
|
|
89
|
+
- name: Install base dependencies
|
|
90
|
+
run: |
|
|
91
|
+
python -m pip install --upgrade pip
|
|
92
|
+
python -m pip install tox
|
|
93
|
+
- name: download datasets
|
|
94
|
+
if: ${{ matrix.gammapy_data }}
|
|
95
|
+
run: |
|
|
96
|
+
python -m pip install -e .
|
|
97
|
+
gammapy download datasets
|
|
98
|
+
- name: Print Python, pip, and tox versions
|
|
99
|
+
run: |
|
|
100
|
+
python -c "import sys; print(f'Python {sys.version}')"
|
|
101
|
+
python -c "import pip; print(f'pip {pip.__version__}')"
|
|
102
|
+
python -c "import tox; print(f'tox {tox.__version__}')"
|
|
103
|
+
- name: Run tests
|
|
104
|
+
if: ${{ !matrix.gammapy_data }}
|
|
105
|
+
run: tox -e ${{ matrix.tox_env }} -- -n auto
|
|
106
|
+
- name: Run tests with data
|
|
107
|
+
if: ${{ matrix.gammapy_data }}
|
|
108
|
+
env:
|
|
109
|
+
GAMMAPY_DATA: ${{ github.workspace }}/gammapy-datasets/dev
|
|
110
|
+
run: tox -e ${{ matrix.tox_env }} -- -n auto
|
|
111
|
+
- name: Upload coverage to codecov
|
|
112
|
+
if: "contains(matrix.tox_env, '-cov')"
|
|
113
|
+
uses: codecov/codecov-action@v7
|
|
114
|
+
with:
|
|
115
|
+
file: ./coverage.xml
|
|
116
|
+
verbose: true
|
|
117
|
+
|
|
118
|
+
- name: Store info for sonar
|
|
119
|
+
env:
|
|
120
|
+
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
121
|
+
SOURCE_REPOSITORY: ${{ github.event.pull_request.head.repo.full_name }}
|
|
122
|
+
SOURCE_BRANCH: ${{ github.event.pull_request.head.ref }}
|
|
123
|
+
TARGET_BRANCH: ${{ github.event.pull_request.base.ref }}
|
|
124
|
+
run: |
|
|
125
|
+
pip install setuptools_scm
|
|
126
|
+
# Use :- to handle unset as empty string and avoid parsing issues in SonarQube
|
|
127
|
+
echo "PR_NUMBER=${PR_NUMBER}" >> sonar_env
|
|
128
|
+
echo "SOURCE_REPOSITORY=${SOURCE_REPOSITORY}" >> sonar_env
|
|
129
|
+
echo "SOURCE_BRANCH=${SOURCE_BRANCH:-}" >> sonar_env
|
|
130
|
+
echo "TARGET_BRANCH=${TARGET_BRANCH:-}" >> sonar_env
|
|
131
|
+
echo "PROJECT_VERSION=$(python -m setuptools_scm)" >> sonar_env
|
|
132
|
+
cat sonar_env
|
|
133
|
+
|
|
134
|
+
# upload coverage report for SonarQube workflow
|
|
135
|
+
- uses: actions/upload-artifact@v7
|
|
136
|
+
if: "contains(matrix.tox_env, '-cov')"
|
|
137
|
+
with:
|
|
138
|
+
name: gammapy-coverage-report
|
|
139
|
+
path: |
|
|
140
|
+
coverage.xml
|
|
141
|
+
sonar_env
|
|
142
|
+
|
|
143
|
+
sphinx:
|
|
144
|
+
name: Linux python 3.12 sphinx all-deps
|
|
145
|
+
runs-on: ubuntu-latest
|
|
146
|
+
defaults:
|
|
147
|
+
run:
|
|
148
|
+
shell: bash -l {0}
|
|
149
|
+
env:
|
|
150
|
+
PYTEST_ADDOPTS: --color=yes -n auto --dist=loadscope
|
|
151
|
+
GAMMAPY_DATA: /home/runner/work/gammapy/gammapy/gammapy-datasets/dev
|
|
152
|
+
|
|
153
|
+
if: contains(github.event.pull_request.labels.*.name, 'skip-docs') == false
|
|
154
|
+
|
|
155
|
+
steps:
|
|
156
|
+
- name: Check out repository
|
|
157
|
+
uses: actions/checkout@v7
|
|
158
|
+
with:
|
|
159
|
+
fetch-depth: 0
|
|
160
|
+
- name: Set up Python 3.12
|
|
161
|
+
uses: actions/setup-python@v7
|
|
162
|
+
with:
|
|
163
|
+
python-version: '3.12'
|
|
164
|
+
- name: Install FFTW3 (required to build Sherpa)
|
|
165
|
+
if: runner.os == 'Linux'
|
|
166
|
+
run: sudo apt-get update && sudo apt-get install -y libfftw3-dev
|
|
167
|
+
- name: Install base dependencies
|
|
168
|
+
run: |
|
|
169
|
+
python -m pip install --upgrade pip
|
|
170
|
+
python -m pip install tox
|
|
171
|
+
- name: download datasets
|
|
172
|
+
run: |
|
|
173
|
+
python -m pip install -e .
|
|
174
|
+
gammapy download datasets
|
|
175
|
+
- name: test build docs
|
|
176
|
+
run: |
|
|
177
|
+
tox -e build_docs
|
|
178
|
+
- name: Upload HTML output
|
|
179
|
+
uses: actions/upload-artifact@v7
|
|
180
|
+
with:
|
|
181
|
+
name: gammapy-doc-html
|
|
182
|
+
path: docs/_build/html/
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: Build docker image
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: '0 0 1 * *' # Run monthly, at 12:00 AM on day 1 of the month
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
docker:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v7
|
|
12
|
+
with:
|
|
13
|
+
fetch-depth: 0
|
|
14
|
+
|
|
15
|
+
- name: Build image
|
|
16
|
+
run: docker build -t gammapy:test .
|
|
17
|
+
|
|
18
|
+
- name: Test image
|
|
19
|
+
run: docker run --rm gammapy:test python -c "import gammapy; print(gammapy.__version__)"
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: Doctests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
schedule:
|
|
6
|
+
- cron: '0 2 * * 5' # Every Friday at 02:00 UTC
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
doctests:
|
|
10
|
+
name: Run doctests in .rst files
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- name: Check out repository
|
|
16
|
+
uses: actions/checkout@v7
|
|
17
|
+
|
|
18
|
+
- name: Set up Python
|
|
19
|
+
uses: actions/setup-python@v7
|
|
20
|
+
with:
|
|
21
|
+
python-version: '3.12'
|
|
22
|
+
|
|
23
|
+
- name: Install dependencies
|
|
24
|
+
run: |
|
|
25
|
+
python -m pip install --upgrade pip
|
|
26
|
+
python -m pip install .[docs,test]
|
|
27
|
+
|
|
28
|
+
- name: Run doctests
|
|
29
|
+
run: pytest --doctest-glob="*.rst" docs/ --ignore=docs/development/pigs/
|
|
30
|
+
|
|
31
|
+
- name: slack notification
|
|
32
|
+
uses: rtCamp/action-slack-notify@v2
|
|
33
|
+
if: failure()
|
|
34
|
+
env:
|
|
35
|
+
SLACK_WEBHOOK: ${{ secrets.SLACK_CI_WEBHOOK }}
|
|
36
|
+
SLACK_MESSAGE: 'doctest run failed'
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: Linkcheck
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
schedule:
|
|
6
|
+
- cron: '0 12 * * 4' # Every Thursday at 12:00 UTC
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
sphinx:
|
|
10
|
+
name: Linux python 3.12 sphinx all-deps
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
defaults:
|
|
13
|
+
run:
|
|
14
|
+
shell: bash -l {0}
|
|
15
|
+
env:
|
|
16
|
+
PYTEST_ADDOPTS: --color=yes -n auto --dist=loadscope
|
|
17
|
+
GAMMAPY_DATA: /home/runner/work/gammapy/gammapy/gammapy-datasets/dev
|
|
18
|
+
steps:
|
|
19
|
+
- name: Check out repository
|
|
20
|
+
uses: actions/checkout@v7
|
|
21
|
+
with:
|
|
22
|
+
fetch-depth: 0
|
|
23
|
+
- name: Set up Python 3.12
|
|
24
|
+
uses: actions/setup-python@v7
|
|
25
|
+
with:
|
|
26
|
+
python-version: '3.12'
|
|
27
|
+
- name: Install base dependencies
|
|
28
|
+
run: |
|
|
29
|
+
python -m pip install --upgrade pip
|
|
30
|
+
python -m pip install tox
|
|
31
|
+
- name: download datasets
|
|
32
|
+
run: |
|
|
33
|
+
python -m pip install -e .
|
|
34
|
+
gammapy download datasets
|
|
35
|
+
- name: check links
|
|
36
|
+
continue-on-error: true
|
|
37
|
+
run: |
|
|
38
|
+
tox -e linkcheck -- -j auto
|
|
39
|
+
- name: slack notification
|
|
40
|
+
uses: rtCamp/action-slack-notify@v2
|
|
41
|
+
if: failure()
|
|
42
|
+
env:
|
|
43
|
+
SLACK_WEBHOOK: ${{ secrets.SLACK_CI_WEBHOOK }}
|
|
44
|
+
SLACK_MESSAGE: 'doctest run failed'
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: Nightly wheel building
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
schedule:
|
|
6
|
+
- cron: '0 5 * * *' # Every day at 05:00 UTC
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build_wheels:
|
|
10
|
+
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@8c8bb6c6c962542921f993d47d26df38dccd50b1 # v3.0.2
|
|
11
|
+
with:
|
|
12
|
+
upload_to_pypi: false
|
|
13
|
+
targets: |
|
|
14
|
+
- cp3*-manylinux_x86_64*
|
|
15
|
+
- cp3*-macosx*
|
|
16
|
+
- cp3*-win_amd64*
|
|
17
|
+
|
|
18
|
+
notify_slack_failure:
|
|
19
|
+
needs: build_wheels
|
|
20
|
+
if: failure()
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
steps:
|
|
23
|
+
- name: slack notification
|
|
24
|
+
uses: rtCamp/action-slack-notify@v2
|
|
25
|
+
env:
|
|
26
|
+
SLACK_WEBHOOK: ${{ secrets.SLACK_CI_WEBHOOK }}
|
|
27
|
+
SLACK_MESSAGE: 'nightly wheel build failed'
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags-ignore:
|
|
6
|
+
- 'v*.dev'
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
release-pypi:
|
|
10
|
+
if: github.repository_owner == 'gammapy'
|
|
11
|
+
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@v3
|
|
12
|
+
with:
|
|
13
|
+
targets: |
|
|
14
|
+
- cp3*-manylinux_x86_64*
|
|
15
|
+
- cp3*-macosx*
|
|
16
|
+
- cp3*-win_amd64*
|
|
17
|
+
secrets:
|
|
18
|
+
pypi_token: ${{ secrets.PYPI_TOKEN }}
|
|
19
|
+
|
|
20
|
+
release-github:
|
|
21
|
+
if: github.repository_owner == 'gammapy' && !contains(github.ref_name, 'rc')
|
|
22
|
+
needs: release-pypi
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
steps:
|
|
25
|
+
- name: Checkout
|
|
26
|
+
uses: actions/checkout@v7
|
|
27
|
+
- name: Release
|
|
28
|
+
uses: softprops/action-gh-release@v3
|
|
29
|
+
with:
|
|
30
|
+
body: |
|
|
31
|
+
Gammapy is a Python package for gamma-ray astronomy. See [changelog for this release](https://github.com/gammapy/gammapy/blob/main/docs/release-notes/${{ github.ref_name }}.rst).
|
|
32
|
+
|
|
33
|
+
dispatch-docs:
|
|
34
|
+
if: github.repository_owner == 'gammapy'
|
|
35
|
+
needs: release-pypi
|
|
36
|
+
runs-on: ubuntu-latest
|
|
37
|
+
steps:
|
|
38
|
+
- name: Dispatch Gammapy Docs
|
|
39
|
+
uses: peter-evans/repository-dispatch@v4
|
|
40
|
+
with:
|
|
41
|
+
token: ${{ secrets.REMOTE_DISPATCH }}
|
|
42
|
+
repository: gammapy/gammapy-docs
|
|
43
|
+
event-type: release
|
|
44
|
+
client-payload: '{"release": "${{ github.ref_name }}"}'
|
|
45
|
+
|
|
46
|
+
dispatch-webpage:
|
|
47
|
+
if: github.repository_owner == 'gammapy'
|
|
48
|
+
needs: release-github
|
|
49
|
+
runs-on: ubuntu-latest
|
|
50
|
+
steps:
|
|
51
|
+
- name: Dispatch Gammapy Webpage
|
|
52
|
+
uses: peter-evans/repository-dispatch@v4
|
|
53
|
+
with:
|
|
54
|
+
token: ${{ secrets.REMOTE_DISPATCH }}
|
|
55
|
+
repository: gammapy/gammapy-webpage
|
|
56
|
+
event-type: release
|
|
57
|
+
client-payload: '{"release": "${{ github.ref_name }}"}'
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# This workflow is triggered by the completion of the CI workflow
|
|
2
|
+
# It then checks out the pull request repository / branch, runs the
|
|
3
|
+
# sonar scanner, downloads the coverage report and uploads the report
|
|
4
|
+
# to the sonarqube server. This is necessary as forks don't have access
|
|
5
|
+
# to secrets and SONAR_TOKEN is required to upload reports.
|
|
6
|
+
#
|
|
7
|
+
# Adapted from https://github.com/medplum/medplum/
|
|
8
|
+
|
|
9
|
+
name: SonarQube quality gate
|
|
10
|
+
|
|
11
|
+
on:
|
|
12
|
+
workflow_run:
|
|
13
|
+
workflows: [CI]
|
|
14
|
+
types: [completed]
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
sonar:
|
|
18
|
+
name: SonarQube
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
if: github.event.workflow_run.conclusion == 'success'
|
|
21
|
+
steps:
|
|
22
|
+
- name: 'Download code coverage'
|
|
23
|
+
uses: actions/github-script@v9
|
|
24
|
+
with:
|
|
25
|
+
script: |
|
|
26
|
+
let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
|
|
27
|
+
owner: context.repo.owner,
|
|
28
|
+
repo: context.repo.repo,
|
|
29
|
+
run_id: context.payload.workflow_run.id,
|
|
30
|
+
});
|
|
31
|
+
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
|
|
32
|
+
return artifact.name == "gammapy-coverage-report"
|
|
33
|
+
})[0];
|
|
34
|
+
let download = await github.rest.actions.downloadArtifact({
|
|
35
|
+
owner: context.repo.owner,
|
|
36
|
+
repo: context.repo.repo,
|
|
37
|
+
artifact_id: matchArtifact.id,
|
|
38
|
+
archive_format: 'zip',
|
|
39
|
+
});
|
|
40
|
+
let fs = require('fs');
|
|
41
|
+
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/gammapy-coverage-report.zip`, Buffer.from(download.data));
|
|
42
|
+
|
|
43
|
+
- name: 'Unzip code coverage'
|
|
44
|
+
run: unzip gammapy-coverage-report.zip -d $HOME/coverage
|
|
45
|
+
|
|
46
|
+
- name: Set environment
|
|
47
|
+
run: |
|
|
48
|
+
cat $HOME/coverage/sonar_env >> "$GITHUB_ENV"
|
|
49
|
+
cat $HOME/coverage/sonar_env
|
|
50
|
+
|
|
51
|
+
- name: Checkout branch or tag
|
|
52
|
+
uses: actions/checkout@v7
|
|
53
|
+
if: github.event.workflow_run.event != 'pull_request'
|
|
54
|
+
with:
|
|
55
|
+
repository: ${{ github.event.workflow_run.head_repository.full_name }}
|
|
56
|
+
ref: ${{ github.event.workflow_run.head_branch }}
|
|
57
|
+
fetch-depth: 0
|
|
58
|
+
clean: false
|
|
59
|
+
|
|
60
|
+
- name: Checkout Pull Request commit
|
|
61
|
+
uses: actions/checkout@v7
|
|
62
|
+
if: github.event.workflow_run.event == 'pull_request'
|
|
63
|
+
with:
|
|
64
|
+
repository: ${{ github.event.workflow_run.head_repository.full_name }}
|
|
65
|
+
ref: ${{ github.event.workflow_run.head_sha }}
|
|
66
|
+
fetch-depth: 0
|
|
67
|
+
clean: false
|
|
68
|
+
|
|
69
|
+
- name: Fetch upstream for correct PR diff
|
|
70
|
+
if: github.event.workflow_run.event == 'pull_request'
|
|
71
|
+
run: |
|
|
72
|
+
git remote add upstream https://github.com/${{ github.repository }}.git
|
|
73
|
+
git fetch upstream ${{ env.TARGET_BRANCH }}
|
|
74
|
+
|
|
75
|
+
- name: Check artifact
|
|
76
|
+
run: |
|
|
77
|
+
cp -r $HOME/coverage .
|
|
78
|
+
ls -l coverage
|
|
79
|
+
cat coverage/coverage.xml
|
|
80
|
+
|
|
81
|
+
- name: Git info
|
|
82
|
+
run: |
|
|
83
|
+
git status
|
|
84
|
+
git log -n 5 --oneline
|
|
85
|
+
ls -l coverage
|
|
86
|
+
|
|
87
|
+
- name: Sonarqube Scan Branch or Tag
|
|
88
|
+
if: github.event.workflow_run.event != 'pull_request'
|
|
89
|
+
uses: SonarSource/sonarqube-scan-action@v8
|
|
90
|
+
env:
|
|
91
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
92
|
+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
93
|
+
SONAR_HOST_URL: https://sonar-ctao.zeuthen.desy.de
|
|
94
|
+
with:
|
|
95
|
+
args: >
|
|
96
|
+
"-Dsonar.projectVersion=${{ env.PROJECT_VERSION }}"
|
|
97
|
+
"-Dsonar.branch.name=${{ github.event.workflow_run.head_branch }}"
|
|
98
|
+
|
|
99
|
+
- name: Sonarqube Scan PR
|
|
100
|
+
if: github.event.workflow_run.event == 'pull_request'
|
|
101
|
+
uses: SonarSource/sonarqube-scan-action@v8
|
|
102
|
+
env:
|
|
103
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
104
|
+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
105
|
+
SONAR_HOST_URL: https://sonar-ctao.zeuthen.desy.de
|
|
106
|
+
with:
|
|
107
|
+
args: >
|
|
108
|
+
"-Dsonar.projectVersion=${{ env.PROJECT_VERSION }}"
|
|
109
|
+
"-Dsonar.scm.revision=${{ github.event.workflow_run.head_sha }}"
|
|
110
|
+
"-Dsonar.pullrequest.key=${{ env.PR_NUMBER }}"
|
|
111
|
+
"-Dsonar.pullrequest.branch=${{ env.SOURCE_BRANCH }}"
|
|
112
|
+
"-Dsonar.pullrequest.base=${{ env.TARGET_BRANCH }}"
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
name: Run tutorials with Jupytext
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
schedule:
|
|
6
|
+
- cron: '0 2 * * 5' # Every Friday at 02:00 UTC
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
execute-tutorials:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
timeout-minutes: 60 # Usual run-time is less than 30 min
|
|
12
|
+
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
|
|
13
|
+
|
|
14
|
+
env:
|
|
15
|
+
GAMMAPY_DATA: /home/runner/work/gammapy/gammapy/gammapy-datasets/dev
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v7
|
|
19
|
+
with:
|
|
20
|
+
fetch-depth: 0
|
|
21
|
+
|
|
22
|
+
- name: Install uv
|
|
23
|
+
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
24
|
+
with:
|
|
25
|
+
python-version: '3.13'
|
|
26
|
+
enable-cache: true
|
|
27
|
+
cache-dependency-glob: |
|
|
28
|
+
**/pyproject.toml
|
|
29
|
+
|
|
30
|
+
- name: Install Gammapy and needed dependencies
|
|
31
|
+
run: |
|
|
32
|
+
uv sync --extra all_no_ray --extra test_notebooks
|
|
33
|
+
|
|
34
|
+
# Get latest commit SHA from gammapy-data main branch
|
|
35
|
+
- name: Get gammapy-data version
|
|
36
|
+
id: gammapy-data-version
|
|
37
|
+
run: |
|
|
38
|
+
COMMIT_SHA=$(curl -s https://api.github.com/repos/gammapy/gammapy-data/commits/main | jq -r '.sha[0:7]')
|
|
39
|
+
echo "sha=$COMMIT_SHA" >> $GITHUB_OUTPUT
|
|
40
|
+
echo "Latest gammapy-data commit: $COMMIT_SHA"
|
|
41
|
+
|
|
42
|
+
- name: Cache gammapy-datasets
|
|
43
|
+
id: cache-gammapy-datasets
|
|
44
|
+
uses: actions/cache@v6
|
|
45
|
+
with:
|
|
46
|
+
path: gammapy-datasets
|
|
47
|
+
key: gammapy-datasets-${{ steps.gammapy-data-version.outputs.sha }}
|
|
48
|
+
restore-keys: |
|
|
49
|
+
gammapy-datasets-
|
|
50
|
+
|
|
51
|
+
- name: Download gammapy-datasets only if not cached
|
|
52
|
+
run: |
|
|
53
|
+
if [ "${{ steps.cache-gammapy-datasets.outputs.cache-hit }}" != "true" ]; then
|
|
54
|
+
echo "Cache miss - downloading gammapy-datasets"
|
|
55
|
+
uv run gammapy download datasets
|
|
56
|
+
else
|
|
57
|
+
echo "Using cached gammapy-datasets"
|
|
58
|
+
fi
|
|
59
|
+
|
|
60
|
+
- name: Register Jupyter kernel
|
|
61
|
+
run: uv run python -m ipykernel install --name gammapy-dev --user
|
|
62
|
+
|
|
63
|
+
- name: Execute tutorials with Jupytext
|
|
64
|
+
run: uv run jupytext --execute examples/tutorials/*/*.py
|