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-24559 (pass butler registry to getInstrument) and DM-24683 (use PRODUCT_DIR instead of OBS_BASE_DIR) #234

Merged
merged 4 commits into from Apr 30, 2020

Conversation

n8pease
Copy link
Contributor

@n8pease n8pease commented Apr 30, 2020

DM-24683: Use PRODUCT_DIR instead of OBS_BASE_DIR in obs_base eups table file

DM-24559: write_curated_calibrations is not passing the butler registry to getInstrument

@ktlim ktlim changed the title DM-24559 (pass butler registry to getInstrument) and DM-24559 (use PRODUCT_DIR instead of OBS_BASE_DIR) DM-24559 (pass butler registry to getInstrument) and DM-24683 (use PRODUCT_DIR instead of OBS_BASE_DIR) Apr 30, 2020
"""

instrument_name = None
"""The instrument name."""
Copy link
Member

Choose a reason for hiding this comment

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

It's not so bad as long as it's just these two, but if the number of must-be-provided attributes grows much more, abstract method getters would be much safer (IMO ingest_tests has definitely passed that point), and I would not object at all to switching up to that approach up front.

"""

instrument_class = None
"""The fully qualified instrument class.
Copy link
Member

Choose a reason for hiding this comment

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

I assume this is class name, not the the type object?

@n8pease n8pease merged commit b87bce2 into master Apr 30, 2020
@timj timj deleted the tickets/DM-24559 branch June 25, 2020 22:49
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