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-39605: Use butler.dimensions rather than butler.registry.dimensions #64
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, few minor comments.
python/lsst/skymap/patchInfo.py
Outdated
@@ -50,7 +50,8 @@ class PatchInfo: | |||
Patch sequential index | |||
tractWcs : `lsst.afw.geom.SkyWcs` | |||
Tract WCS object. | |||
cellInnerDimensions : `Iterable` [`int`, `int`] or `lsst.geom.Extent2I`, optional | |||
cellInnerDimensions : `Iterable` [`int`, `int`] or `lsst.geom.Extent2I`, \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cellInnerDimensions : `Iterable` [`int`, `int`] or `lsst.geom.Extent2I`, \ | |
cellInnerDimensions : `~collections.abc.Iterable` [`int`] or `lsst.geom.Extent2I`, \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Not sure how I missed that one, and again I think they might be trying to tell us that it's an iterable of list. Tuple[int, int]
might be clearer.
python/lsst/skymap/tractBuilder.py
Outdated
@@ -102,7 +102,8 @@ def getPatchInfo(self, index, tractWcs): | |||
|
|||
Parameters | |||
---------- | |||
index : `lsst.skymap.Index2D` or `Iterable` [`int`, `int`] | |||
index : `lsst.skymap.Index2D` or `~collections.abc.Iterable` \ | |||
[`int`, `int`] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this means "iterable returning two integers", but Iterable[int, int]
is probably an incorrect syntax for mypy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I think it might actually mean iterable of two integers because Index2D
is a single x,y coordinate. I did ponder it for a few seconds and since I was unsure I left it as it was before.
Without this sphinx complains about clashing symbols.
Also fix some docstring errors and get
package-docs
working.