Skip to content

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 <david89062388@gmail.com>
@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!

@vgrau98 vgrau98 mentioned this pull request Apr 27, 2024
7 tasks
ytl0623 and others added 4 commits April 28, 2024 00:26
Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
Signed-off-by: ytl0623 <david89062388@gmail.com>
Signed-off-by: ytl0623 <david89062388@gmail.com>
@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

ytl0623 and others added 8 commits May 14, 2024 18:15
Co-authored-by: Yu <146002968+Yu0610@users.noreply.github.com>
Signed-off-by: ytl0623 <david89062388@gmail.com>
Co-authored-by: Yu <146002968+Yu0610@users.noreply.github.com>
Signed-off-by: ytl0623 <david89062388@gmail.com>
Signed-off-by: ytl0623 <david89062388@gmail.com>
Signed-off-by: ytl0623 <david89062388@gmail.com>
Signed-off-by: ytl0623 <david89062388@gmail.com>
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

Signed-off-by: ytl0623 <david89062388@gmail.com>
ytl0623 added 4 commits May 14, 2024 20:38
Signed-off-by: ytl0623 <david89062388@gmail.com>
Signed-off-by: ytl0623 <david89062388@gmail.com>
Signed-off-by: ytl0623 <david89062388@gmail.com>
Signed-off-by: ytl0623 <david89062388@gmail.com>
@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!

ytl0623 and others added 3 commits May 15, 2024 20:03
Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
Signed-off-by: ytl0623 <david89062388@gmail.com>
Signed-off-by: ytl0623 <david89062388@gmail.com>
ytl0623 added 2 commits May 16, 2024 16:23
Signed-off-by: ytl0623 <david89062388@gmail.com>
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 <17726042+ericspod@users.noreply.github.com>
Signed-off-by: ytl0623 <david89062388@gmail.com>
Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
Signed-off-by: ytl0623 <david89062388@gmail.com>
Signed-off-by: ytl0623 <david89062388@gmail.com>
@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
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