-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Correct default mask for array images in HorneExtract #118
Conversation
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.
Fixes the case that I was seeing! Does this need a changelog entry as a bugfix?
Good call, @kecnry; I went ahead and created a new section in |
Codecov Report
@@ Coverage Diff @@
## main #118 +/- ##
==========================================
+ Coverage 69.43% 70.09% +0.66%
==========================================
Files 9 9
Lines 602 602
==========================================
+ Hits 418 422 +4
+ Misses 184 180 -4
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
looks good and another nice catch. codecov says and i agree it'd be worth adding a test case to cover this. |
The coverage needed here likely clashes with #117 since |
@ojustino - if you add a test here that covers the case that used to fail, I can update it if needed when rebasing (since I'm guessing this will get merged before that one). |
OK, the tests are in. |
aad2df9
to
ada5936
Compare
When
HorneExtract
/OptimalExtract
is given anumpy
array as an image and no mask, it tries to create its own mask usingnp.ma.masked_invalid(image)
. They are currently written as if that object itself is the mask, when it's actually in that object'smask
attribute. This pull request makes the switch.