diff --git a/monai/config/__init__.py b/monai/config/__init__.py index a83889aee0..c814e1f8eb 100644 --- a/monai/config/__init__.py +++ b/monai/config/__init__.py @@ -14,6 +14,7 @@ from .deviceconfig import ( USE_COMPILED, USE_META_DICT, + IgniteInfo, get_config_values, get_gpu_info, get_optional_config_values, diff --git a/monai/config/deviceconfig.py b/monai/config/deviceconfig.py index 7ac1b29919..05842245ce 100644 --- a/monai/config/deviceconfig.py +++ b/monai/config/deviceconfig.py @@ -23,6 +23,8 @@ import torch import monai +from monai.utils.deprecate_utils import deprecated +from monai.utils.enums import IgniteInfo as _IgniteInfo from monai.utils.module import OptionalImportError, get_package_version, optional_import try: @@ -45,6 +47,7 @@ "print_debug_info", "USE_COMPILED", "USE_META_DICT", + "IgniteInfo", ] @@ -260,5 +263,12 @@ def print_debug_info(file: TextIO = sys.stdout) -> None: print_gpu_info(file) +@deprecated(since="1.4.0", removed="1.6.0", msg_suffix="Please use `monai.utils.enums.IgniteInfo` instead.") +class IgniteInfo: + """Deprecated Import of IgniteInfo enum, which was moved to `monai.utils.enums.IgniteInfo`.""" + + OPT_IMPORT_VERSION = _IgniteInfo.OPT_IMPORT_VERSION + + if __name__ == "__main__": print_debug_info() diff --git a/monai/utils/enums.py b/monai/utils/enums.py index 900133f2f2..1fbf3ffa05 100644 --- a/monai/utils/enums.py +++ b/monai/utils/enums.py @@ -727,7 +727,7 @@ class IgniteInfo(StrEnum): """ - OPT_IMPORT_VERSION = "0.4.4" + OPT_IMPORT_VERSION = "0.4.11" if TYPE_CHECKING: