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-17023: update to new daf_butler APIs. #312

Merged
merged 3 commits into from Sep 24, 2019
Merged

Conversation

TallJimbo
Copy link
Member

No description provided.

Copy link
Contributor

@andy-slac andy-slac left a comment

Choose a reason for hiding this comment

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

Looks good, one minor comment.

except AttributeError:
# Retargeting can mean that astromRefObjLoader doesn't have a
# ref_dataset_name, which is fine.
pass
Copy link
Contributor

Choose a reason for hiding this comment

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

This could quietly hide other errors than one described in comment, e.g. misspelled attribute name. It may be safer to do getattr(self.astromRefObjLoader, "ref_dataset_name", None) instead of catching an error. Same for try ... except below.

@TallJimbo TallJimbo force-pushed the tickets/DM-17023 branch 3 times, most recently from fc69a91 to 9acbe2f Compare September 24, 2019 17:46
We now rely on database constraints and insert optimistically, reraising
with a better error message.  This is better for concurrency and avoids
reliance on direct SQL queries.
We're changing how we specify reference catalog names in configuration
in the transition from Gen2 to Gen3, and in the interim it seems
prudent to require that both [sets of] config options remain
consistent.  This of course will do nothing until we actually start
calling config.validate() in the Gen3 executors, but that's a separate
problem.
@TallJimbo TallJimbo merged commit 9e516c2 into master Sep 24, 2019
@TallJimbo TallJimbo deleted the tickets/DM-17023 branch September 24, 2019 18: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.

None yet

2 participants