Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated args and class for v1.3 #7019

Merged
merged 19 commits into from
Sep 22, 2023
Merged

Conversation

KumoLiu
Copy link
Contributor

@KumoLiu KumoLiu commented Sep 21, 2023

Fixes #7018.

Description

  • Remove compute_meaniou
  • Remove AsChannelFirst, AddChannel and SplitChannel
  • Remove create_multigpu_supervised_trainer and create_multigpu_supervised_evaluator
  • deprecated data_src_cfg_filename in AlgoEnsembleBuilder
  • deprecated runner_id in run
  • deprecated epoch_interval and iteration_interval in TensorBoardStatsHandler
  • deprecated get_validation_stats in Evaluator
  • deprecated get_train_stats in Trainer
  • update the default value of name to StatsHandler in StatsHandler
  • update the default value of random_size to False in RandSpatialCrop, RandScaleCrop, RandSpatialCropSamples
  • update the default value of image_only to True in LoadImage and SaveImage
  • update MetaTenor related deprecation

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

KumoLiu and others added 3 commits September 21, 2023 20:24
Signed-off-by: KumoLiu <yunl@nvidia.com>
Signed-off-by: KumoLiu <yunl@nvidia.com>
Signed-off-by: KumoLiu <yunl@nvidia.com>
Signed-off-by: KumoLiu <yunl@nvidia.com>
@wyli
Copy link
Contributor

wyli commented Sep 21, 2023

thanks, we may consider updating the default value here:

@deprecated_arg_default("image_only", False, True, since="1.1", replaced="1.3")

KumoLiu and others added 2 commits September 21, 2023 21:36
Signed-off-by: KumoLiu <yunl@nvidia.com>
@KumoLiu KumoLiu marked this pull request as draft September 21, 2023 13:46
KumoLiu and others added 6 commits September 22, 2023 10:33
Signed-off-by: KumoLiu <yunl@nvidia.com>
Signed-off-by: KumoLiu <yunl@nvidia.com>
Signed-off-by: KumoLiu <yunl@nvidia.com>
Signed-off-by: KumoLiu <yunl@nvidia.com>
@KumoLiu KumoLiu marked this pull request as ready for review September 22, 2023 04:13
Signed-off-by: KumoLiu <yunl@nvidia.com>
Signed-off-by: KumoLiu <yunl@nvidia.com>
KumoLiu and others added 2 commits September 22, 2023 16:20
Copy link
Contributor

@wyli wyli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, it looks good to me, running more tests then merging

@wyli
Copy link
Contributor

wyli commented Sep 22, 2023

/build

@wyli wyli enabled auto-merge (squash) September 22, 2023 11:07
@wyli wyli disabled auto-merge September 22, 2023 11:16
@wyli wyli enabled auto-merge (squash) September 22, 2023 11:16
@wyli wyli merged commit 7dfa0b9 into Project-MONAI:dev Sep 22, 2023
29 of 35 checks passed
@KumoLiu KumoLiu deleted the deperacated branch September 22, 2023 12:42
wyli pushed a commit to Project-MONAI/tutorials that referenced this pull request Sep 25, 2023
### Description
After Project-MONAI/MONAI#7019, `AsChannelFirst`
and `AddChannel` have been deprecated, remove the usage in the tutorial.

### Checks
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [ ] Avoid including large-size files in the PR.
- [ ] Clean up long text outputs from code cells in the notebook.
- [ ] For security purposes, please check the contents and remove any
sensitive info such as user names and private key.
- [ ] Ensure (1) hyperlinks and markdown anchors are working (2) use
relative paths for tutorial repo files (3) put figure and graphs in the
`./figure` folder
- [ ] Notebook runs automatically `./runner.sh -t <path to .ipynb file>`

---------

Signed-off-by: KumoLiu <yunl@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
wyli pushed a commit to Project-MONAI/tutorials that referenced this pull request Sep 26, 2023
Fixes #1529 

### Description
Update `image_only=False` in `LoadImaged` since the default value of
`image_only` has been changed by
Project-MONAI/MONAI#7019

### Checks
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Avoid including large-size files in the PR.
- [x] Clean up long text outputs from code cells in the notebook.
- [ ] For security purposes, please check the contents and remove any
sensitive info such as user names and private key.
- [ ] Ensure (1) hyperlinks and markdown anchors are working (2) use
relative paths for tutorial repo files (3) put figure and graphs in the
`./figure` folder
- [ ] Notebook runs automatically `./runner.sh -t <path to .ipynb file>`

Signed-off-by: KumoLiu <yunl@nvidia.com>
boneseva pushed a commit to boneseva/MONAI-tutorials that referenced this pull request Apr 21, 2024
### Description
After Project-MONAI/MONAI#7019, `AsChannelFirst`
and `AddChannel` have been deprecated, remove the usage in the tutorial.

### Checks
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [ ] Avoid including large-size files in the PR.
- [ ] Clean up long text outputs from code cells in the notebook.
- [ ] For security purposes, please check the contents and remove any
sensitive info such as user names and private key.
- [ ] Ensure (1) hyperlinks and markdown anchors are working (2) use
relative paths for tutorial repo files (3) put figure and graphs in the
`./figure` folder
- [ ] Notebook runs automatically `./runner.sh -t <path to .ipynb file>`

---------

Signed-off-by: KumoLiu <yunl@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
boneseva pushed a commit to boneseva/MONAI-tutorials that referenced this pull request Apr 21, 2024
Fixes Project-MONAI#1529 

### Description
Update `image_only=False` in `LoadImaged` since the default value of
`image_only` has been changed by
Project-MONAI/MONAI#7019

### Checks
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Avoid including large-size files in the PR.
- [x] Clean up long text outputs from code cells in the notebook.
- [ ] For security purposes, please check the contents and remove any
sensitive info such as user names and private key.
- [ ] Ensure (1) hyperlinks and markdown anchors are working (2) use
relative paths for tutorial repo files (3) put figure and graphs in the
`./figure` folder
- [ ] Notebook runs automatically `./runner.sh -t <path to .ipynb file>`

Signed-off-by: KumoLiu <yunl@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove deprecated args and class for v1.3
3 participants