Skip to content

Commit

Permalink
Backport PR gammapy#5576: Add UniformPrior and GaussianPrior in `…
Browse files Browse the repository at this point in the history
…gammapy.modeling.models __all__`
  • Loading branch information
registerrier authored and meeseeksmachine committed Nov 18, 2024
1 parent f3fdd35 commit 1b54437
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 1b54437

Please sign in to comment.