Skip to content

Commit 17da2ae

Browse files
authored
Merge branch 'dev' into pythonicworkflow
2 parents 800dd4e + 530cc1f commit 17da2ae

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+172
-132
lines changed

.github/workflows/blossom-ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ jobs:
3434
(
3535
github.actor == 'Nic-Ma' ||
3636
github.actor == 'wyli' ||
37-
github.actor == 'pxLi' ||
38-
github.actor == 'YanxuanLiu' ||
37+
github.actor == 'wendell-hom' ||
3938
github.actor == 'KumoLiu'
4039
)
4140
steps:

.pre-commit-config.yaml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ci:
99

1010
repos:
1111
- repo: https://github.com/pre-commit/pre-commit-hooks
12-
rev: v4.6.0
12+
rev: v5.0.0
1313
hooks:
1414
- id: end-of-file-fixer
1515
- id: trailing-whitespace
@@ -26,33 +26,30 @@ repos:
2626
args: ['--autofix', '--no-sort-keys', '--indent=4']
2727
- id: end-of-file-fixer
2828
- id: mixed-line-ending
29-
- repo: https://github.com/charliermarsh/ruff-pre-commit
30-
rev: v0.3.5
29+
- repo: https://github.com/astral-sh/ruff-pre-commit
30+
rev: v0.7.0
3131
hooks:
3232
- id: ruff
3333
args:
3434
- --fix
3535

3636
- repo: https://github.com/asottile/pyupgrade
37-
rev: v3.3.1
37+
rev: v3.19.0
3838
hooks:
3939
- id: pyupgrade
40-
args: [--py37-plus]
41-
name: Upgrade code excluding monai networks
40+
args: [--py39-plus, --keep-runtime-typing]
41+
name: Upgrade code with exceptions
4242
exclude: |
4343
(?x)(
4444
^versioneer.py|
4545
^monai/_version.py|
46-
^monai/networks/| # no PEP 604 for torchscript tensorrt
47-
^monai/losses/ # no PEP 604 for torchscript tensorrt
46+
^monai/networks/| # avoid typing rewrites
47+
^monai/apps/detection/utils/anchor_utils.py| # avoid typing rewrites
48+
^tests/test_compute_panoptic_quality.py # avoid typing rewrites
4849
)
49-
- id: pyupgrade
50-
args: [--py37-plus, --keep-runtime-typing]
51-
name: Upgrade monai networks
52-
files: (?x)(^monai/networks/)
5350
5451
- repo: https://github.com/asottile/yesqa
55-
rev: v1.4.0
52+
rev: v1.5.0
5653
hooks:
5754
- id: yesqa
5855
name: Unused noqa

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
55

66
## [Unreleased]
77

8-
## [1.4.0] - 2024-10-14
8+
## [1.4.0] - 2024-10-17
99
## What's Changed
1010
### Added
1111
* Implemented Conjugate Gradient Solver to generate confidence maps. (#7876)

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: "MONAI: Medical Open Network for AI"
66
abstract: "AI Toolkit for Healthcare Imaging"
77
authors:
88
- name: "MONAI Consortium"
9-
date-released: 2024-10-14
9+
date-released: 2024-10-17
1010
version: "1.4.0"
1111
identifiers:
1212
- description: "This DOI represents all versions of MONAI, and will always resolve to the latest one."

CONTRIBUTING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,3 +383,8 @@ then make PRs to the `releasing/[version number]` to fix the bugs via the regula
383383
If any error occurs after the release process, first check out a new hotfix branch from the `main` branch,
384384
make a patch version release following the semantic versioning, for example, `releasing/0.1.1`.
385385
Make sure the `releasing/0.1.1` is merged back into both `dev` and `main` and all the test pipelines succeed.
386+
387+
388+
<p align="right">
389+
<a href="#introduction">⬆️ Back to Top</a>
390+
</p>

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
[![codecov](https://codecov.io/gh/Project-MONAI/MONAI/branch/dev/graph/badge.svg?token=6FTC7U1JJ4)](https://codecov.io/gh/Project-MONAI/MONAI)
1717
[![monai Downloads Last Month](https://assets.piptrends.com/get-last-month-downloads-badge/monai.svg 'monai Downloads Last Month by pip Trends')](https://piptrends.com/package/monai)
1818

19-
MONAI is a [PyTorch](https://pytorch.org/)-based, [open-source](https://github.com/Project-MONAI/MONAI/blob/dev/LICENSE) framework for deep learning in healthcare imaging, part of [PyTorch Ecosystem](https://pytorch.org/ecosystem/).
20-
Its ambitions are:
21-
- developing a community of academic, industrial and clinical researchers collaborating on a common foundation;
22-
- creating state-of-the-art, end-to-end training workflows for healthcare imaging;
23-
- providing researchers with the optimized and standardized way to create and evaluate deep learning models.
19+
MONAI is a [PyTorch](https://pytorch.org/)-based, [open-source](https://github.com/Project-MONAI/MONAI/blob/dev/LICENSE) framework for deep learning in healthcare imaging, part of the [PyTorch Ecosystem](https://pytorch.org/ecosystem/).
20+
Its ambitions are as follows:
21+
- Developing a community of academic, industrial and clinical researchers collaborating on a common foundation;
22+
- Creating state-of-the-art, end-to-end training workflows for healthcare imaging;
23+
- Providing researchers with the optimized and standardized way to create and evaluate deep learning models.
2424

2525

2626
## Features

monai/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
from __future__ import annotations
1313

14+
import logging
1415
import os
1516
import sys
16-
import logging
1717
import warnings
18-
from ._version import get_versions
1918

19+
from ._version import get_versions
2020

2121
old_showwarning = warnings.showwarning
2222

monai/apps/detection/networks/retinanet_network.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
import math
4343
import warnings
4444
from collections.abc import Callable, Sequence
45-
from typing import Any, Dict
45+
from typing import Any
4646

4747
import torch
4848
from torch import Tensor, nn
@@ -330,7 +330,7 @@ def forward(self, images: Tensor) -> Any:
330330
features = self.feature_extractor(images)
331331
if isinstance(features, Tensor):
332332
feature_maps = [features]
333-
elif torch.jit.isinstance(features, Dict[str, Tensor]):
333+
elif torch.jit.isinstance(features, dict[str, Tensor]):
334334
feature_maps = list(features.values())
335335
else:
336336
feature_maps = list(features)

monai/apps/detection/transforms/array.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
from __future__ import annotations
1717

18-
from typing import Any, Sequence
18+
from collections.abc import Sequence
19+
from typing import Any
1920

2021
import numpy as np
2122
import torch

monai/apps/generation/maisi/networks/autoencoderkl_maisi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
import gc
1515
import logging
16-
from typing import Sequence
16+
from collections.abc import Sequence
1717

1818
import torch
1919
import torch.nn as nn

0 commit comments

Comments
 (0)