Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add license to dev folder files #4868

Merged
merged 2 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions dev/authors.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Utility script to work with the CITATION.cff file"""
import logging
import subprocess
Expand Down
1 change: 1 addition & 0 deletions dev/codemeta.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Utility script to work with the codemeta.json file."""
import json
import logging
Expand Down
1 change: 1 addition & 0 deletions dev/prepare-release.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import logging
from datetime import date
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions gammapy/analysis/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/astro/darkmatter/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/astro/population/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/astro/source/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/catalog/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/catalog/tests/data/make.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Make test reference data files."""

from gammapy.catalog import CATALOG_REGISTRY
Expand Down
1 change: 1 addition & 0 deletions gammapy/data/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from gammapy.utils.registry import Registry
from .core import Dataset, Datasets
from .flux_points import FluxPointsDataset
Expand Down
1 change: 1 addition & 0 deletions gammapy/datasets/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/estimators/map/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from .asmooth import ASmoothMapEstimator
from .core import FluxMaps
from .excess import ExcessMapEstimator
Expand Down
1 change: 1 addition & 0 deletions gammapy/estimators/map/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/estimators/points/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from .core import FluxPoints
from .lightcurve import LightCurveEstimator
from .profile import FluxProfileEstimator
Expand Down
1 change: 1 addition & 0 deletions gammapy/estimators/points/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/estimators/points/tests/test_lightcurve.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import pytest
import numpy as np
from numpy.testing import assert_allclose
Expand Down
1 change: 1 addition & 0 deletions gammapy/estimators/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/irf/core.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import abc
import html
import logging
Expand Down
1 change: 1 addition & 0 deletions gammapy/irf/edisp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from .core import EnergyDispersion2D
from .kernel import EDispKernel
from .map import EDispKernelMap, EDispMap
Expand Down
1 change: 1 addition & 0 deletions gammapy/irf/edisp/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/irf/psf/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from .kernel import PSFKernel
from .map import PSFMap, RecoPSFMap
from .parametric import EnergyDependentMultiGaussPSF, ParametricPSF, PSFKing
Expand Down
1 change: 1 addition & 0 deletions gammapy/irf/psf/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/irf/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/irf/tests/test_gadf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import numpy as np
import astropy.units as u

Expand Down
1 change: 1 addition & 0 deletions gammapy/irf/tests/test_rad_max.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import pytest
import numpy as np
from numpy.testing import assert_allclose
Expand Down
1 change: 1 addition & 0 deletions gammapy/makers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from gammapy.utils.registry import Registry
from .background import (
AdaptiveRingBackgroundMaker,
Expand Down
1 change: 1 addition & 0 deletions gammapy/makers/background/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from .fov import FoVBackgroundMaker
from .phase import PhaseBackgroundMaker
from .reflected import (
Expand Down
1 change: 1 addition & 0 deletions gammapy/makers/background/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/makers/reduce.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import logging
from astropy.coordinates import Angle
import gammapy.utils.parallel as parallel
Expand Down
1 change: 1 addition & 0 deletions gammapy/makers/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/makers/tests/test_core.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from gammapy.makers import MAKER_REGISTRY


Expand Down
1 change: 1 addition & 0 deletions gammapy/maps/coord.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import copy
import html
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions gammapy/maps/hpx/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from .core import HpxMap
from .geom import HpxGeom
from .ndmap import HpxNDMap
Expand Down
1 change: 1 addition & 0 deletions gammapy/maps/hpx/io.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import copy
import html

Expand Down
1 change: 1 addition & 0 deletions gammapy/maps/hpx/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/maps/region/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from .geom import RegionGeom
from .ndmap import RegionNDMap

Expand Down
1 change: 1 addition & 0 deletions gammapy/maps/region/geom.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import copy
import logging
from functools import lru_cache
Expand Down
1 change: 1 addition & 0 deletions gammapy/maps/region/ndmap.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from itertools import product
import numpy as np
from scipy.ndimage import label as ndi_label
Expand Down
1 change: 1 addition & 0 deletions gammapy/maps/region/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/maps/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/maps/wcs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from .core import WcsMap
from .geom import WcsGeom
from .ndmap import WcsNDMap
Expand Down
1 change: 1 addition & 0 deletions gammapy/maps/wcs/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/modeling/models/prior.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import logging
import numpy as np
import astropy.units as u
Expand Down
1 change: 1 addition & 0 deletions gammapy/modeling/models/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/modeling/models/tests/data/make.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Create example model YAML files programmatically.

(some will be also written manually)
Expand Down
1 change: 1 addition & 0 deletions gammapy/modeling/models/tests/test_management.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import pytest
import numpy as np
from numpy.testing import assert_allclose
Expand Down
1 change: 1 addition & 0 deletions gammapy/modeling/models/tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from numpy.testing import assert_allclose
import astropy.units as u
from astropy.time import Time
Expand Down
1 change: 1 addition & 0 deletions gammapy/modeling/models/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import numpy as np
from astropy import units as u
from astropy.coordinates import SkyCoord
Expand Down
1 change: 1 addition & 0 deletions gammapy/modeling/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/scripts/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/stats/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/utils/check.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import logging
import os
from gammapy.scripts.download import RELEASE, cli_download_datasets
Expand Down
1 change: 1 addition & 0 deletions gammapy/utils/coordinates/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Astronomical coordinate calculation utility functions.
"""
from .fov import fov_to_sky, sky_to_fov
Expand Down
1 change: 1 addition & 0 deletions gammapy/utils/coordinates/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/utils/random/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Random probability distribution helpers."""
from .inverse_cdf import InverseCDFSampler
from .utils import (
Expand Down
1 change: 1 addition & 0 deletions gammapy/utils/random/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/utils/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/visualization/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from .cmap import colormap_hess, colormap_milagro
from .datasets import plot_npred_signal, plot_spectrum_datasets_off_regions
from .heatmap import annotate_heatmap, plot_heatmap
Expand Down
1 change: 1 addition & 0 deletions gammapy/visualization/heatmap.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import numpy as np
import matplotlib.pyplot as plt

Expand Down
1 change: 1 addition & 0 deletions gammapy/visualization/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1 change: 1 addition & 0 deletions gammapy/visualization/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import logging as log
import numpy as np
from scipy.interpolate import CubicSpline
Expand Down