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-24664: Refactor data ID translation rule system #206

Merged
merged 1 commit into from May 2, 2020

Conversation

TallJimbo
Copy link
Member

No description provided.

I believe this may also fix some untested but broken code involving
the fact that LSST uses expId, not visit, as the Gen2 equivalent of
Gen3's exposure.  Of course, that may never matter because I'm not
sure we'll ever convert any of those Gen2 repos.
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.

Other than the expId vs. visit thing continuing to confuse me, this looks fine.

def makeDataIdTranslatorFactory(self) -> TranslatorFactory:
# Docstring inherited from lsst.obs.base.Instrument.
factory = TranslatorFactory()
factory.addGenericInstrumentRules(self.getName(), detectorKey="detector", exposureKey="expId")
Copy link
Contributor

Choose a reason for hiding this comment

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

I was thrown off by detectorKey="detector" (aren't they all?!?) until I remembered that this was about the names in gen2. Probably not worth a comment though.

@TallJimbo TallJimbo merged commit 56b0ea1 into master May 2, 2020
@TallJimbo TallJimbo deleted the tickets/DM-24664 branch May 2, 2020 04:07
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