medcat.utils.config_utils
Classes:
Functions:
-
temp_changed_config–Context manager to change the config temporarily (within).
IllegalConfigPathException
IllegalConfigPathException(target_path: str)
Bases: ValueError
Source code in medcat-v2/medcat/utils/config_utils.py
31 32 33 | |
temp_changed_config
Context manager to change the config temporarily (within).
Parameters:
-
(configBaseModel) –The config in question.
-
(targetstr) –The attribute name to change.
-
(valueAny) –The temporary value to use.
Raises:
-
IllegalConfigPathException–If no previous value is available.
Source code in medcat-v2/medcat/utils/config_utils.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | |