ObservationsConfig#
- class gammapy.analysis.ObservationsConfig[source]#
Bases:
GammapyBaseConfig
Configuration for
Observations
.- Attributes:
- datastorestr
Path to the data store.
- obs_idslist of int
List of observation IDs.
- obs_filestr
Path to a YAML observation file.
- obs_conedict
Cone selection for observations. Should contain the following keys ‘frame’, ‘lat’, ‘lon’ and ‘radius’, the latter three as angle quantities.
- obs_timedict
Observation time filtering. Should contain the following keys ‘start’ and ‘stop’ as time quantities.
- required_irflist
Required IRF components, options are “aeff”, “edisp”, “psf”, “bkg”
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 allowself
as a field name.Attributes Summary
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 allowself
as a field name.- Parameters:
data (Any)
- Return type:
None
- classmethod __new__(*args, **kwargs)#