ObservationSummary¶
-
class
gammapy.data.
ObservationSummary
(obs_stats)[source]¶ Bases:
object
Summary of observations.
For a list of observation stats, this class can make a table and do summary printout and plots.
- TODO: Data should be stored in
Table
! - TODO: there should be a per-run version of the stats in addition to the cumulative version that’s there now.
Parameters: - obs_stats : list
Python list of
ObservationStats
Methods Summary
obs_wise_summary
(self)Observation wise summary report (str). plot_background_rate
(self[, ax])Plot background rate for each observation. plot_background_vs_livetime
(self[, ax])Plot background as a function of livetime. plot_excess_vs_livetime
(self[, ax])Plot excess as a function of livetime. plot_gamma_rate
(self[, ax])Plot gamma rate for each observation. plot_significance_vs_livetime
(self[, ax])Plot significance as a function of livetime. Methods Documentation
-
plot_background_rate
(self, ax=None, **kwargs)[source]¶ Plot background rate for each observation.
Parameters: Returns: - ax :
Axes
Axis
- ax :
-
plot_background_vs_livetime
(self, ax=None, **kwargs)[source]¶ Plot background as a function of livetime.
Parameters: Returns: - ax :
Axes
Axis
- ax :
-
plot_excess_vs_livetime
(self, ax=None, **kwargs)[source]¶ Plot excess as a function of livetime.
Parameters: Returns: - ax :
Axes
Axis
- ax :
- TODO: Data should be stored in