DatasetsConfig#

class gammapy.analysis.DatasetsConfig[source]#

Bases: GammapyBaseConfig

Configuration for dataset reduction.

Attributes:
typestr

Type of dataset to create (e.g., ‘spectrum’).

stackbool

Whether to stack observations.

geomGeomConfig

Geometry configuration.

map_selectionlist of str

Select which maps to make, the available options are: ‘counts’, ‘exposure’, ‘background’, ‘psf’, ‘edisp’.

backgroundBackgroundConfig

Background configuration.

safe_maskSafeMaskConfig

Safe mask configuration.

on_regiondict

ON-region definition for spectral extraction. Should contain the following keys ‘frame’, ‘lat’, ‘lon’ and ‘radius’, the latter three as angle quantities.

containment_correctionbool

Whether to apply containment correction.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Attributes Summary

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Attributes Documentation

model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'forbid', 'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

__init__(**data)#

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:

data (Any)

Return type:

None

classmethod __new__(*args, **kwargs)#