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-41943: Do-over 41118 (opening for review) #288

Merged
merged 6 commits into from Dec 7, 2023
Merged

Conversation

yalsayyad
Copy link
Contributor

No description provided.

detNegPix = (mask.array & mask.getPlaneBitMask("DETECTED_NEGATIVE")) > 0
self.metadata.add("nPixelsDetectedPositive", np.sum(detPosPix))
self.metadata.add("nPixelsDetectedNegative", np.sum(detNegPix))
detPosPix *= ~goodPix
Copy link
Contributor Author

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
Copy link
Contributor Author

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.

@isullivan isullivan merged commit c4b7eaf into main Dec 7, 2023
2 checks passed
@isullivan isullivan deleted the tickets/DM-41943 branch December 7, 2023 18:49
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