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-41512: Add check for no good sources in finalizeCharacterization #856

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

laurenam
Copy link
Contributor

@laurenam laurenam commented Nov 1, 2023

No description provided.

@laurenam laurenam requested a review from erykoff November 1, 2023 13:51
@laurenam laurenam force-pushed the tickets/DM-41512 branch 2 times, most recently from b8e9ae3 to 57ce0ca Compare November 2, 2023 04:34
@@ -598,6 +609,10 @@ def compute_psf_and_ap_corr_map(self, visit, detector, exposure, src, isolated_s
"""
# Apply source selector (s/n, flags, etc.)
good_src = self.source_selector.selectSources(src)
if sum(good_src.selected) < 1:
Copy link
Contributor

Choose a reason for hiding this comment

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

I would do a check == 0 here as well.

@laurenam laurenam merged commit 281251e into main Nov 3, 2023
2 checks passed
@laurenam laurenam deleted the tickets/DM-41512 branch November 3, 2023 22:04
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.

2 participants