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-30927: Set calexp WCS to None for failed astrometric fit #189

Merged
merged 1 commit into from Sep 30, 2022

Conversation

laurenam
Copy link
Contributor

No description provided.

@@ -799,6 +802,8 @@ def _load_data(self, inputSourceTableVisit, inputVisitSummary, associations,
visitCatalog = dataRef.get(parameters={'columns': columns})

selected = self.sourceSelector.run(visitCatalog)
if len(selected) == 0:
raise RuntimeError("No data to process: the source selector removed all sources")
Copy link
Contributor

Choose a reason for hiding this comment

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

Wait, should this actually raise if one of the visits has no sources?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hhhmmm...good point. Do you think I should just log a message (INFO/WARNING?) and continue?

@laurenam laurenam force-pushed the tickets/DM-30927 branch 2 times, most recently from c31acc6 to 53171bf Compare September 21, 2022 00:02
@@ -799,6 +802,10 @@ def _load_data(self, inputSourceTableVisit, inputVisitSummary, associations,
visitCatalog = dataRef.get(parameters={'columns': columns})

selected = self.sourceSelector.run(visitCatalog)
if len(selected) == 0:
Copy link
Contributor

Choose a reason for hiding this comment

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

This line is incorrect, selected is a struct. You need len(selected.sourceCat).

We are now persisting source catalogs even in light of an astrometric
failure in single frame processing.  Such catalogs will have their sky
coordinate column (typically "coord_ra" and "coord_dec") values set to
NaN.  They are thus not suitable for inclusion in the jointcal
calibration, so this config default ensures they are omited from the
selection of "good" sources.
@laurenam laurenam merged commit 26f71f4 into main Sep 30, 2022
@laurenam laurenam deleted the tickets/DM-30927 branch September 30, 2022 10:55
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