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-12207: Add color selection for photocal #76

Merged
merged 1 commit into from Nov 7, 2017
Merged

Conversation

PaulPrice
Copy link
Contributor

No description provided.

Copy link
Contributor

@parejkoj parejkoj left a comment

Choose a reason for hiding this comment

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

One comment about empty refcat selection. I do like the warn messages you've added.

refCat = refData.refCat
refSelection = self.referenceSelection.selectSources(refCat)
if len(refSelection.sourceCat) == 0:
self.log.warn("No objects selected from %d objects in reference catalog", len(refCat))
Copy link
Contributor

Choose a reason for hiding this comment

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

Why run matches after this, if there are no ref sources? Shouldn't you also short-circuit an empty return?

Selecting sources before matching makes the matching process easier.
@PaulPrice PaulPrice merged commit 28efd2d into master Nov 7, 2017
@ktlim ktlim deleted the tickets/DM-12207 branch August 25, 2018 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants