BUG: Raising scipy.spatial.transform.Rotation to power of 0 adds dimension to underlying numpy.array #20188
Labels
defect
A clear bug or issue that prevents SciPy from being installed or used as expected
scipy.spatial
Milestone
Describe your issue.
If I define a scipy.spatial.transform.Rotation and return it as e.g. a quaternion, I get it as a numpy.array of shape (4,). But if I raise it to the zeroth power and return as a quaternion again, I now receive a numpy.array of shape (1,4). The same thing happens for all
as_*()
member functions.Is this intended, and if so, why?
Reproducing Code Example
Error message
SciPy/NumPy/Python version and system information
The text was updated successfully, but these errors were encountered: