scipp.configuration.Config
scipp.configuration.Config#
- class scipp.configuration.Config#
Runtime configuration parameters.
Provides dict-like access to configuration parameters. Modifications apply to the current process only and do not modify any configuration files.
See https://scipp.github.io/reference/runtime-configuration.html
- __init__()#
Methods
__init__
()Return the directory for configuration files.
Return the path to the configuration file.
get
()Return parameters as a dict.
items
()Returns iterable over parameter names and values.
keys
()Returns iterable over parameter names.
values
()Returns iterable over parameter values.
- __getitem__(name)#
Return parameter of given name.
- config_dir()#
Return the directory for configuration files.
The directory is created if it does not already exist.
- Return type
- config_path()#
Return the path to the configuration file.
The file may not exist but its folder is created if it does not already exist.
- Return type