Configuration

An analysis requires a (local) configuration. Such a configuration defines for instance the internal units used for the calculations, or defines the project’s working directory.

The skyllh.core.config module provides the Config class. Instatiating it create a configuration with the default base configuration. This base configuration can be updated using a yaml file via the from_yaml() class method or a Python dictionary via the from_dict() class method.

[3]:
from skyllh.core.config import Config

# Create default configuration.
cfg = Config()

The configuration instance will be passed to the skyllh.core.analysis.Analysis class and all other classes that need access to the configuration. The cfg instance is local and could be created several times, but should be created only once for an analysis.