pyphi.conf#
Layered configuration system for PyPhi.
Three frozen dataclass layers (FormalismConfig,
InfrastructureConfig, NumericsConfig) wrapped in a
ConfigSnapshot value type, accessed through the config
singleton (_GlobalConfig). Both flat (config.precision) and
layered (config.numerics.precision) reads work; writes use the flat
form (config.precision = 6) or config.override() for scoped
changes.
If a pyphi_config.yml file exists in the working directory at import
time, its layered-format contents are auto-applied. A YAML file using the
uppercase flat format raises ConfigurationError with a pointer to
the rename map.
Submodules
Eager config-combination validation. |
|
Formalism layer of the PyPhi config. |
|
Infrastructure layer of the PyPhi config. |
|
Numerics layer of the PyPhi config. |
|
Canonical IIT formalism presets. |
|
Frozen snapshot of the three config layers, attached to result objects. |