Skip to content

Commit

Permalink
Merge pull request gammapy#5579 from meeseeksmachine/auto-backport-of…
Browse files Browse the repository at this point in the history
…-pr-5576-on-v1.3.x

Backport PR gammapy#5576 on branch v1.3.x (Add `UniformPrior` and `GaussianPrior` in `gammapy.modeling.models __all__`)
  • Loading branch information
registerrier authored Nov 21, 2024
2 parents f3fdd35 + 1b54437 commit 1f86fbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions gammapy/modeling/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Built-in models in Gammapy."""

from gammapy.utils.registry import Registry
from .core import DatasetModels, Model, ModelBase, Models
from .cube import (
Expand Down Expand Up @@ -109,6 +110,8 @@
"PowerLawSpectralModel",
"PowerLawTemporalModel",
"Prior",
"GaussianPrior",
"UniformPrior",
"scale_plot_flux",
"ScaleSpectralModel",
"Shell2SpatialModel",
Expand Down
3 changes: 2 additions & 1 deletion gammapy/modeling/models/prior.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Priors for Gammapy."""

import logging
import numpy as np
import astropy.units as u
from gammapy.modeling import PriorParameter, PriorParameters
from .core import ModelBase

__all__ = ["GaussianPrior", "UniformPrior"]
__all__ = ["GaussianPrior", "UniformPrior", "Prior"]

log = logging.getLogger(__name__)

Expand Down

0 comments on commit 1f86fbf

Please sign in to comment.