utils.set_option#
- seismostats.utils.set_option(key: str, value: Any)#
Sets the value of the specified option.
- Available options:
- ‘warnings’: bool (default: True)
If True, warnings will be shown.
- Parameters:
key – The option to set. Available options are ‘warnings’.
value – The value to set the option to.
- Raises:
KeyError – If the key is not in the available options.
Examples
>>> from seismostats.utils._config import set_option
>>> # Disable warnings >>> set_option('warnings', False)
See also
seismostats.utils._config.get_option()