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-36762: Fix broken Spanset.asArray method #664

Merged
merged 2 commits into from Oct 28, 2022
Merged

DM-36762: Fix broken Spanset.asArray method #664

merged 2 commits into from Oct 28, 2022

Conversation

fred3m
Copy link
Contributor

@fred3m fred3m commented Oct 27, 2022

No description provided.

@@ -440,6 +440,24 @@ def testSpanIteration(self):
self.assertEqual(len(span), len(points))
self.assertEqual(points, [lsst.geom.Point2I(x, 4) for x in range(3, 9)])

def testAsArray(self):
spans = afwGeom.SpanSet(lsst.geom.Box2I(lsst.geom.Point2I(2, 3),
Copy link
Contributor

Choose a reason for hiding this comment

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

Black assures me that this would make more sense written this way:

spans = afwGeom.SpanSet(
    lsst.geom.Box2I(lsst.geom.Point2I(2, 3), lsst.geom.Point2I(6, 7))
)

I think I agree, but I don't feel super strongly about it!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I changed it. I don't like it written the way it was either, I just copied it from one of the tests above and didn't bother to reformat it.

@fred3m fred3m merged commit 026aa02 into main Oct 28, 2022
@fred3m fred3m deleted the tickets/DM-36762 branch October 28, 2022 14:56
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