Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
  • Loading branch information
KumoLiu committed Sep 30, 2024
1 parent 58da97c commit 9db212d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions monai/config/deviceconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import monai
from monai.utils.deprecate_utils import deprecated
from monai.utils.enums import IgniteInfo as NewIgniteInfo
from monai.utils.enums import IgniteInfo as _IgniteInfo
from monai.utils.module import OptionalImportError, get_package_version, optional_import

try:
Expand Down Expand Up @@ -264,11 +264,9 @@ def print_debug_info(file: TextIO = sys.stdout) -> None:

@deprecated(since=1.4, removed=1.6, msg_suffix="Please use `monai.utils.enums.IgniteInfo` instead.")
class IgniteInfo:
"""
IgniteInfo enum is moved to `monai.utils.enums.IgniteInfo`.
"""
"""Deprecated Import of IgniteInfo enum, which was moved to `monai.utils.enums.IgniteInfo`."""

OPT_IMPORT_VERSION = NewIgniteInfo.OPT_IMPORT_VERSION
OPT_IMPORT_VERSION = _IgniteInfo.OPT_IMPORT_VERSION


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion monai/utils/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ class IgniteInfo(StrEnum):
"""

OPT_IMPORT_VERSION = "0.4.4"
OPT_IMPORT_VERSION = "0.4.11"


if TYPE_CHECKING:
Expand Down

0 comments on commit 9db212d

Please sign in to comment.