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 #146

Merged
merged 1 commit into from May 2, 2020

Conversation

TallJimbo
Copy link
Member

No description provided.

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.

My one comment on this ticket applies to all the others, but I initially wrote it here so here it stays.

@@ -87,3 +88,17 @@ def getRawFormatter(self, dataId):
# local import to prevent circular dependency
from .rawFormatter import DarkEnergyCameraRawFormatter
return DarkEnergyCameraRawFormatter

def makeDataIdTranslatorFactory(self) -> TranslatorFactory:
# Docstring inherited from lsst.obs.base.Instrument.
Copy link
Contributor

Choose a reason for hiding this comment

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

I've been ambivalent about these comments since I started seeing them in daf_butler. They seem to mostly add clutter, and provide benefit mostly for the reviewer.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't love them either, but don't have an alternative that I like a lot better - the best alternative us all to start assuming that if a method is undocumented on a class with a base class, the docstring is inherited, but I don't really feel our docs are in sufficiently good shape for that to be a reasonable assumption most of the time.

@TallJimbo TallJimbo merged commit 2f46faf 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
2 participants