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-39605: Use butler.dimensions rather than butler.registry.dimensions #64

Merged
merged 8 commits into from Jun 14, 2023

Conversation

timj
Copy link
Member

@timj timj commented Jun 13, 2023

Also fix some docstring errors and get package-docs working.

@timj timj requested a review from andy-slac June 13, 2023 21:31
Copy link

@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, few minor comments.

@@ -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`, \

Choose a reason for hiding this comment

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

Suggested change
cellInnerDimensions : `Iterable` [`int`, `int`] or `lsst.geom.Extent2I`, \
cellInnerDimensions : `~collections.abc.Iterable` [`int`] or `lsst.geom.Extent2I`, \

Copy link
Member Author

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.

@@ -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`]

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?

Copy link
Member Author

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.

tests/test_ringsSkyMap.py Outdated Show resolved Hide resolved
tests/test_ringsSkyMap.py Outdated Show resolved Hide resolved
tests/test_ringsSkyMap.py Outdated Show resolved Hide resolved
@timj timj merged commit 2f36b36 into main Jun 14, 2023
1 check passed
@timj timj deleted the tickets/DM-39605 branch June 14, 2023 14:51
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