-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
ENH: Rotation.concatenate #14524
ENH: Rotation.concatenate #14524
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.
Nice! My 2 cents since I am not a user of these: can you add a validation error test (pytest.raises(... match=...)
) and maybe a version added flag?
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.
Changes LGTM, but I would let somebody who uses this have a second look.
scipy/spatial/transform/rotation.pyx
Outdated
----- | ||
.. versionadded:: 1.8.0 | ||
""" | ||
if not all([isinstance(x, Rotation) for x in rotations]): |
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 assume that []
won't be necessary and it is even more idiomatic to omit it here.
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 Nikolay. Done.
Reference issue
Closes #14340
What does this implement/fix?
This adds a
concatenate
method similar tonp.concatenate
but forRotation
objects.@nmayorov what do you think?