Calling len()
on the scipy.spatial.transform.rotation.Rotation
object with one rotation should return 1
#13452
Labels
defect
A clear bug or issue that prevents SciPy from being installed or used as expected
scipy.spatial
Milestone
When calling the
len()
function on thescipy.spatial.transform.rotation.Rotation
object with exactly one rotation, it currently raises a TypeError instead of returning 1.(Link to source code)
Reproducing code example:
Error message:
Calling
len()
on an object with 2 rotations returns 2 as expected:Moreover, when creating a rotation object using the
from_euler()
class method, it correctly returns 1 for one rotation around a single coordinate axis, but raises the above error again for a rotation around more than one coordinate axes:Scipy/Numpy/Python version information:
The text was updated successfully, but these errors were encountered: