Context¶
- mew.set_context(key, value)[source]¶
Set a single value in the global benchmark context.
- Parameters:
- Raises:
ValueError – If
keyis empty, has an empty path segment, or traverses through a non-dict value.- Return type:
- mew.update_context(*mapping, **kwargs)[source]¶
Set many context values at once.
Positional dicts are applied first, then
kwargs. Dotted keys nest in both forms; pass them via splat asupdate_context(**{"a.b": 1}).- Parameters:
- Raises:
ValueError – Same conditions as
set_context().- Return type: