Skip to content

Conversation

@arunkannawadi
Copy link
Member

No description provided.

# The `if` branch is buggy. `dest_polygon` is technically
# out of scope, but Python does not raise an error.
# TODO: Fix this properly in DM-53479, but sweep it under
# the rug for now.
Copy link
Member

Choose a reason for hiding this comment

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

Python's for scoping rules just don't work like those in other languages.

I'm guessing overlap_fraction < 0.5 basically assumes this never fires?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's exactly correct. And since overlap_fraction > 0.5 guarantees that a detector overlaps the center of the cell, the single-visit PSF can still be evaluated without extrapolating the model outside of the detector.

@arunkannawadi arunkannawadi changed the title DM-53476: Exclude visits with too many artifacts within a cell DM-53476: Set INEXACT_PSF mask bits in cell-coadds Dec 4, 2025
@arunkannawadi arunkannawadi merged commit 1cac3a8 into main Dec 4, 2025
8 checks passed
@arunkannawadi arunkannawadi deleted the tickets/DM-53476 branch December 4, 2025 06:20
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.

3 participants