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-41943: Do-over 41118 (opening for review) #288
Conversation
detNegPix = (mask.array & mask.getPlaneBitMask("DETECTED_NEGATIVE")) > 0 | ||
self.metadata.add("nPixelsDetectedPositive", np.sum(detPosPix)) | ||
self.metadata.add("nPixelsDetectedNegative", np.sum(detNegPix)) | ||
detPosPix *= ~goodPix |
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.
Took me a sec to realize you meant detPosPix &= ~goodPix
.
What you have works, but was slower for this reader to read.
if template_coverage < config.requiredTemplateFraction: | ||
doRaise = True | ||
elif template_coverage < config.minTemplateFractionForExpectedSuccess: | ||
doRaise = True |
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.
The task only raises NoWorkFound
if you get a RuntimeError or lsst.pex.exceptions.Exception. I didn't follow how/that you designed the input image to subtract successfully for 0.7 but not for 0.19. Maybe an inline comment to help me out.
Also, if you designed these input images so that the 0.19 fails, then that also means that if I change the default for minTemplateFractionForExpectedSuccess
to 0.18, this test would fail.
…emplate coverage.
f73a65e
to
1049ab2
Compare
No description provided.