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

DM-32818: Add zeroWeightMaskBits #7

Merged
merged 1 commit into from Dec 10, 2021
Merged

DM-32818: Add zeroWeightMaskBits #7

merged 1 commit into from Dec 10, 2021

Conversation

jmeyers314
Copy link
Collaborator

No description provided.

good &= np.isfinite(varArr)
good &= np.isfinite(imArr)
bitmask = maskedImage.mask.getPlaneBitMask(zeroWeightMaskBits)
good &= ((maskedImage.mask.array & bitmask) == 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Very minor, but this could be ...

bitmask = maskedImage.mask.getPlaneBitMask(zeroWeightMaskBits)
good = ((varArr != 0)
        & (np.isfinite(varArr))
        & (np.isfinite(imArr))
        & ((maskedImage.mask.array & bitmask) == 0)
       )

@jmeyers314 jmeyers314 merged commit 9647d74 into main Dec 10, 2021
@jmeyers314 jmeyers314 deleted the tickets/DM-32818 branch December 10, 2021 19:41
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.

None yet

2 participants