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
Expand patch radius if input is int #2372
Conversation
if patch radius is an int, it needs to be expanded to (1,3) array before calling _extract_3d_patches.
Hello @FelixLiu-SF, Thank you for updating ! Cheers ! There are no PEP8 issues in this Pull Request. 🍻 Comment last updated at 2021-04-21 20:47:26 UTC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @FelixLiu-SF,
Thank you for doing this fix!
- Can you update the unit test also?
- Can you fix the pep8 above?
@ShreyasFadnavis, Can you look into this PR? Thank you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @FelixLiu-SF - Good catch! And thank you for this PR 👍🏽
1 minor comment from me, otherwise I think the PR looks good!
@skoudoro I don't think there is a unit test for this functionality.
Maybe hard to unit-test this since it's not a function of its own. We can make a function for it if necessary! |
In your unit tests, you call many times |
Yep -- Good idea! Works :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @FelixLiu-SF,
Thank you for your pep8 fix. Can you update a test and then your PR will be ready to be merged.
You just need to update this line and add patch_radius=0
as a parameter.
Thank you.
Codecov Report
@@ Coverage Diff @@
## master #2372 +/- ##
==========================================
- Coverage 85.25% 85.24% -0.01%
==========================================
Files 125 125
Lines 16556 16558 +2
Branches 2683 2684 +1
==========================================
+ Hits 14114 14115 +1
Misses 1759 1759
- Partials 683 684 +1
|
All set! |
Thanks for this @FelixLiu-SF ! I think its ready to be merged 👍🏽 I will wait till tomorrow if anyone else has any other comments. |
Okay! This is good to go! Merging 🚀 Thanks @FelixLiu-SF ! |
if patch radius is an int, it needs to be expanded to (1,3) array before calling _extract_3d_patches.