Skip to content

Commit ed0fdee

Browse files
KumoLiupre-commit-ci[bot]SachidanandAlledependabot[bot]jamesobutler
authored
Fix ImportError for IgniteInfo (#1747)
* fix ignite-info issue Signed-off-by: YunLiu <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Signed-off-by: YunLiu <[email protected]> * update monai version Signed-off-by: YunLiu <[email protected]> * revert version change Signed-off-by: YunLiu <[email protected]> * temp fix Signed-off-by: YunLiu <[email protected]> * minor fix Signed-off-by: YunLiu <[email protected]> * minor fix Signed-off-by: YunLiu <[email protected]> * update to 3.9 and drop 3.8 Signed-off-by: YunLiu <[email protected]> * [pre-commit.ci] pre-commit autoupdate (#1716) updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0) - [github.com/psf/black: 24.3.0 → 24.4.2](psf/black@24.3.0...24.4.2) - [github.com/psf/black: 24.3.0 → 24.4.2](psf/black@24.3.0...24.4.2) - [github.com/PyCQA/flake8: 7.0.0 → 7.1.0](PyCQA/flake8@7.0.0...7.1.0) - [github.com/pre-commit/mirrors-mypy: v1.9.0 → v1.10.1](pre-commit/mirrors-mypy@v1.9.0...v1.10.1) - [github.com/asottile/pyupgrade: v3.15.2 → v3.16.0](asottile/pyupgrade@v3.15.2...v3.16.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: SACHIDANAND ALLE <[email protected]> Signed-off-by: YunLiu <[email protected]> * Bump urllib3 from 2.2.1 to 2.2.2 (#1753) Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.2.1 to 2.2.2. - [Release notes](https://github.com/urllib3/urllib3/releases) - [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst) - [Commits](urllib3/urllib3@2.2.1...2.2.2) --- updated-dependencies: - dependency-name: urllib3 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: YunLiu <[email protected]> * Bump requests from 2.31.0 to 2.32.2 (#1754) Bumps [requests](https://github.com/psf/requests) from 2.31.0 to 2.32.2. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](psf/requests@v2.31.0...v2.32.2) --- updated-dependencies: - dependency-name: requests dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: YunLiu <[email protected]> * ENH: Allow newer version of dependencies (#1748) Pinning basic packages such as "requests" to a specific patch level release such "2.31.0" is too strict. New releases and especially new patch releases allow to use latest security updates of various packages. Signed-off-by: James Butler <[email protected]> Co-authored-by: SACHIDANAND ALLE <[email protected]> Signed-off-by: YunLiu <[email protected]> * Release 0.8.4 checks and updates (#1757) * Release 0.8.4 checks and updates Signed-off-by: tangy5 <[email protected]> * Trigger monai container update Signed-off-by: tangy5 <[email protected]> * Drop python 3.8 Signed-off-by: tangy5 <[email protected]> * Drop python 3.8 Signed-off-by: tangy5 <[email protected]> --------- Signed-off-by: tangy5 <[email protected]> Co-authored-by: tangy5 <[email protected]> Signed-off-by: YunLiu <[email protected]> * Add MITK as supported platform (#1759) Signed-off-by: Ashis Ravindran <[email protected]> Signed-off-by: YunLiu <[email protected]> * Add MITK to installation docs (#1761) * Add MITK as supported platform Signed-off-by: Ashis Ravindran <[email protected]> * Update link to MONAI Label repo Signed-off-by: Ashis Ravindran <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Signed-off-by: Ashis Ravindran <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Signed-off-by: YunLiu <[email protected]> * fix(mode): no need to initialize toolbar service (#1763) Signed-off-by: YunLiu <[email protected]> * BUG: Fix traceback in restored transform (#1766) Using transforms from MONAI and MONAILabel can result in metadata containing torch.tensors and torch.Sizes. This change fixes a traceback in the restored transform resulting from an incompatibility between torch datatypes and numpy.any(). Signed-off-by: Thomas Kierski <[email protected]> Signed-off-by: YunLiu <[email protected]> * Revert "update to 3.9 and drop 3.8" This reverts commit 8ced475. Signed-off-by: YunLiu <[email protected]> * revert Signed-off-by: YunLiu <[email protected]> * revert Signed-off-by: YunLiu <[email protected]> * revert Signed-off-by: YunLiu <[email protected]> --------- Signed-off-by: YunLiu <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: James Butler <[email protected]> Signed-off-by: tangy5 <[email protected]> Signed-off-by: Ashis Ravindran <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: SACHIDANAND ALLE <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: James Butler <[email protected]> Co-authored-by: tangy5 <[email protected]> Co-authored-by: tangy5 <[email protected]> Co-authored-by: Ashis Ravindran <[email protected]> Co-authored-by: Alireza <[email protected]> Co-authored-by: Thomas Kierski <[email protected]>
1 parent d2d7d20 commit ed0fdee

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

monailabel/deepedit/handlers.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313

1414
import numpy as np
1515
import torch
16-
from monai.config import IgniteInfo
17-
from monai.utils import min_version, optional_import
16+
from monai.utils import IgniteInfo, min_version, optional_import
1817
from monai.visualize import plot_2d_or_3d_image
1918
from torch import distributed as dist
2019
from torchvision.utils import make_grid

sample-apps/pathology/lib/handlers.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717
import numpy as np
1818
import torch
1919
import torch.distributed
20-
from monai.config import IgniteInfo
2120
from monai.metrics import compute_dice
22-
from monai.utils import min_version, optional_import
21+
from monai.utils import IgniteInfo, min_version, optional_import
2322

2423
Events, _ = optional_import("ignite.engine", IgniteInfo.OPT_IMPORT_VERSION, min_version, "Events")
2524
make_grid, _ = optional_import("torchvision.utils", name="make_grid")

0 commit comments

Comments
 (0)