e3j.utils.config.config¶
- class e3j.utils.config.config(**kwargs)¶
Singleton config class for e3j.
This class manages a global
Configinstance. The global configuration can be read withe3j.config()and overriden permanently withe3j.config(**kwargs).To override with context manager scope, use:
# context manager: with e3j.use(**kwargs): ...
Get/set the global configuration object.
Methods
fields()from_yaml(path)options()snapshot([config])config, or a frozen copy of the global state if None or global.state()Return a frozen copy of current state.
to_dict()to_yaml([path])use(**kwargs)Override configuration within context scope.
Attributes
aggregationconvolutiondebug_levellayoutsymmetric_contractiontensor_product- classmethod snapshot(config: Config | None = None) Config¶
config, or a frozen copy of the global state if None or global.
- classmethod use(**kwargs)¶
Override configuration within context scope.