[1]:
%load_ext autoreload
%autoreload 2
[2]:
import numpy as np

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 :py:mod:`skyllh.core.config` module provides the :py:class:`~skyllh.core.config.Config` class. Instatiating it create a configuration with the default base configuration. This base configuration can be updated using a *yaml* file via the :py:meth:`~skyllh.core.Config.from_yaml` class method or a Python dictionary via the :py:meth:`~skyllh.core.Config.from_dict` class method.
[3]:
from skyllh.core.config import Config

# Create default configuration.
cfg = Config()
The configuration instance will be passed to the :py:class:`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.