DataManager

class gammapy.data.DataManager(config=None)[source]

Bases: object

Data manager.

The data manager helps to locate, download, index, validate and generally manage data.

The DataManager object just stores the configuration in a config attribute and that configuration can be read from and written to YAML files.

TODO: link to a getting started section in the docs.

Parameters:

config : OrderedDict

Data manager configuration.

Attributes Summary

DEFAULT_CONFIG_FILE
store_names Data store names
stores List of data stores.

Methods Summary

from_yaml(filename) Create from a YAML config file.
info([stream]) Print some info.
store_config(name)

Attributes Documentation

DEFAULT_CONFIG_FILE = PosixPath('/Users/deil/.gammapy/data-register.yaml')
store_names

Data store names

stores

List of data stores.

Methods Documentation

classmethod from_yaml(filename)[source]

Create from a YAML config file.

Parameters:

filename : str

YAML config file

info(stream=None)[source]

Print some info.

store_config(name)[source]