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-40118: Produce more useful source injection data reduction logs #13

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

leeskelvin
Copy link
Collaborator

No description provided.

injection_catalogs = [Table(names=["ra", "dec", "source_type"])]
else:
raise RuntimeError(
"No injection catalogs overlapping this DatasetRef. Check your input catalog coverage."
Copy link
Member

Choose a reason for hiding this comment

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

The run() method does not refer to a DatasetRef does it? So I'm not convinced this error message should mention a DatasetRef.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The injection_catalogs input comes from the inject_visit runQuantum, which is just a butlerQC.get(input_refs). If this returns nothing, then there is no overlap coverage for the query you've supplied. What would be more appropriate wording here? "...overlapping your data query" ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed to:

No injection sources overlap the data query. Check injection catalog coverage.

@leeskelvin leeskelvin changed the title DM-40118: Raise more helpful error when no sources overlap DM-40118: Produce more useful source injection data reduction logs Jul 20, 2023
@jtmccann
Copy link
Contributor

LGTM!

@leeskelvin leeskelvin merged commit 85bdc65 into main Jul 20, 2023
7 checks passed
@leeskelvin leeskelvin deleted the tickets/DM-40118 branch July 20, 2023 12:39
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