Skip to content

Commit

Permalink
Add FuxProfileEstimator to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
adonath committed Nov 22, 2021
1 parent d342c5a commit 7fe3d56
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/estimators/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ Gammapy tutorial notebooks that show examples using ``gammapy.estimators``:
../tutorials/analysis/2D/detect.ipynb
../tutorials/analysis/1D/spectral_analysis.ipynb
../tutorials/analysis/3D/analysis_3d.ipynb
../tutorials/analysis/3D/flux_profiles.ipynb


Reference/API
Expand Down
1 change: 1 addition & 0 deletions examples/models/spectral/plot_template_spectral.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import numpy as np
from astropy import units as u
import matplotlib.pyplot as plt

# %%
# Spectral correction
# Corrections to templates can be applied by multiplication with a normalized spectral model,
Expand Down
4 changes: 2 additions & 2 deletions gammapy/estimators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
ASmoothMapEstimator,
LightCurveEstimator,
SensitivityEstimator,
ImageProfileEstimator,
FluxProfileEstimator,
]
)
"""Registry of estimator classes in Gammapy."""

__all__ = [
"ESTIMATOR_REGISTRY",
"FluxPoints",
"ImageProfile",
"FluxMaps",
"Estimator",
]
__all__.extend(cls.__name__ for cls in ESTIMATOR_REGISTRY)
3 changes: 2 additions & 1 deletion gammapy/modeling/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ class CovarianceResult(FitStepResult):

class OptimizeResult(FitStepResult):
"""Optimize result object."""

def __init__(self, parameters, nfev, total_stat, trace, **kwargs):
self._parameters = parameters
self._nfev = nfev
Expand Down Expand Up @@ -573,6 +574,7 @@ class FitResult:
covariance_result : `CovarianceResult`
Result of the covariance step.
"""

def __init__(self, optimize_result=None, covariance_result=None):
self._optimize_result = optimize_result
self._covariance_result = covariance_result
Expand Down Expand Up @@ -644,4 +646,3 @@ def __repr__(self):
str_ += str(self.covariance_result)

return str_

0 comments on commit 7fe3d56

Please sign in to comment.