AnalysisConfig¶
-
class
gammapy.scripts.
AnalysisConfig
(config=None, filename='config.yaml')[source]¶ Bases:
object
Analysis configuration.
Parameters: - config : dict
Configuration parameters
Methods Summary
from_template
([template])Create AnalysisConfig from existing templates. from_yaml
(filename)Read config from filename help
(self[, section])Print template configuration settings. to_yaml
(self[, filename, overwrite])Serialize config into a yaml formatted file. update_settings
(self[, config, filename])Update settings with config dictionary or values in configfile validate
(self)Validate and/or fill initial config parameters against schema. Methods Documentation
-
classmethod
from_template
(template='basic')[source]¶ Create AnalysisConfig from existing templates.
Parameters: - template : {“basic”, “1d”, “3d”}
Build in templates.
Returns: - analysis :
AnalysisConfig
AnalysisConfig class
-
to_yaml
(self, filename=None, overwrite=False)[source]¶ Serialize config into a yaml formatted file.
Parameters: - filename : str, Path
Configuration settings filename Default config.yaml
- overwrite : bool
Whether to overwrite an existing file.