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

Add function in monai.transforms.utils.py #7712

Merged
merged 30 commits into from
May 21, 2024

Conversation

ytl0623
Copy link
Contributor

@ytl0623 ytl0623 commented Apr 25, 2024

Fixes #6704

Description

Combined map_classes_to_indices and generate_label_classes_crop_centers to a single function map_and_generate_sampling_centers in monai.transforms.utils.py.

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.

@ytl0623 ytl0623 force-pushed the fix-issue-6704 branch 4 times, most recently from 63220ae to 0ee18a7 Compare April 25, 2024 10:48
Signed-off-by: ytl0623 <[email protected]>
@ytl0623
Copy link
Contributor Author

ytl0623 commented Apr 25, 2024

cc @Yu0610

@ytl0623
Copy link
Contributor Author

ytl0623 commented Apr 25, 2024

Hi @KumoLiu and @ericspod, Could you please help me review the PR or give some tips to solve the issue?

Thanks in advance!

monai/transforms/utils.py Outdated Show resolved Hide resolved
monai/transforms/utils.py Outdated Show resolved Hide resolved
@vgrau98 vgrau98 mentioned this pull request Apr 27, 2024
7 tasks
@KumoLiu
Copy link
Contributor

KumoLiu commented Apr 28, 2024

Hi @ytl0623, thanks for the quick update. Please take a look at the ci error. Thanks!
https://github.com/Project-MONAI/MONAI/actions/runs/8861728836/job/24333913325?pr=7712#step:8:12539

monai/transforms/utils.py Outdated Show resolved Hide resolved
monai/transforms/utils.py Outdated Show resolved Hide resolved
monai/transforms/utils.py Outdated Show resolved Hide resolved
monai/transforms/utils.py Outdated Show resolved Hide resolved
monai/transforms/utils.py Outdated Show resolved Hide resolved
monai/transforms/utils.py Outdated Show resolved Hide resolved
tests/test_map_and_generate_sampling_centers.py Outdated Show resolved Hide resolved
tests/test_map_and_generate_sampling_centers.py Outdated Show resolved Hide resolved
tests/test_map_and_generate_sampling_centers.py Outdated Show resolved Hide resolved
tests/test_map_and_generate_sampling_centers.py Outdated Show resolved Hide resolved
monai/transforms/utils.py Outdated Show resolved Hide resolved
Copy link
Contributor Author

@ytl0623 ytl0623 left a comment

Choose a reason for hiding this comment

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

OK

@ytl0623
Copy link
Contributor Author

ytl0623 commented May 14, 2024

Hi @KumoLiu and @ericspod,

@Yu0610 and I just added a unit test and modified some bugs.
Please help us review the codes.

Thanks in advance!

monai/transforms/utils.py Outdated Show resolved Hide resolved
ytl0623 and others added 3 commits May 15, 2024 20:03
monai/transforms/utils.py Outdated Show resolved Hide resolved
monai/transforms/utils.py Outdated Show resolved Hide resolved
Copy link
Member

@ericspod ericspod left a comment

Choose a reason for hiding this comment

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

I will approve now but there's two minor comments I made that should be looked at, otherwise it looks good now.

ytl0623 and others added 4 commits May 17, 2024 19:50
Co-authored-by: Eric Kerfoot <[email protected]>
Signed-off-by: ytl0623 <[email protected]>
Co-authored-by: Eric Kerfoot <[email protected]>
Signed-off-by: ytl0623 <[email protected]>
Signed-off-by: ytl0623 <[email protected]>
@ytl0623
Copy link
Contributor Author

ytl0623 commented May 17, 2024

Hi, @ericspod and @KumoLiu
Please review my code if you have free time.
Thank you very much!

@ytl0623
Copy link
Contributor Author

ytl0623 commented May 19, 2024

Hi @KumoLiu,
Could you please help review codes?
Thanks a lot!

@KumoLiu
Copy link
Contributor

KumoLiu commented May 21, 2024

/build

@KumoLiu KumoLiu merged commit 244148d into Project-MONAI:dev May 21, 2024
28 checks passed
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.

A utility function to generate sampling points
4 participants