Skip to content

5991 add utility enhancements for lazy resampling#6017

Merged
wyli merged 5 commits intoProject-MONAI:devfrom
yiheng-wang-nv:5991-add-utility-enhancements-for-lazy-resampling
Feb 17, 2023
Merged

5991 add utility enhancements for lazy resampling#6017
wyli merged 5 commits intoProject-MONAI:devfrom
yiheng-wang-nv:5991-add-utility-enhancements-for-lazy-resampling

Conversation

@yiheng-wang-nv
Copy link
Copy Markdown
Contributor

@yiheng-wang-nv yiheng-wang-nv commented Feb 17, 2023

Part of #5991 .

Description

This PR adds the minor utility enhancements from #5860 relate to lazy resampling, and it belongs to the first part mentioned in #5991

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.

Signed-off-by: Yiheng Wang <[email protected]>
@yiheng-wang-nv yiheng-wang-nv marked this pull request as ready for review February 17, 2023 11:09
@yiheng-wang-nv yiheng-wang-nv changed the title [WIP] 5991 add utility enhancements for lazy resampling 5991 add utility enhancements for lazy resampling Feb 17, 2023
@yiheng-wang-nv yiheng-wang-nv requested a review from wyli February 17, 2023 11:12
@wyli
Copy link
Copy Markdown
Contributor

wyli commented Feb 17, 2023

/build

@wyli wyli enabled auto-merge (squash) February 17, 2023 11:35
@wyli wyli merged commit d44c7cb into Project-MONAI:dev Feb 17, 2023
@yiheng-wang-nv yiheng-wang-nv deleted the 5991-add-utility-enhancements-for-lazy-resampling branch February 17, 2023 12:36
resampler = monai.transforms.SpatialResample(**init_kwargs)
# resampler.lazy_evaluation = False
with resampler.trace_transform(False): # don't track this transform in `data`
# resampler.lazy_evaluation = False # resampler is a lazytransform
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi @wyli @yiheng-wang-nv ,

May I know why keep this line commented code?

Thanks.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi @Nic-Ma , .lazy_evaluation requires the transform extends LazyTransform, now the class in dev branch does not have related code (see: https://github.com/Project-MONAI/MONAI/pull/5860/files#diff-3a1b9fb96f9cde878a33605fcbd39cf1af51a79c285fe662d80a00f0c43e2d5fL114) This line will be uncommented after related changes are added.

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.

3 participants