bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / spatial / transform / _rotation / Rotation / __setitem__
function
scipy.spatial.transform._rotation:Rotation.__setitem__
source: build-install/usr/lib/python3.14/site-packages/scipy/spatial/transform/_rotation.py:2238
Signature
def __setitem__(self, indexer: int | slice | EllipsisType, value: Rotation)Summary
Set rotation(s) at given index(es) from object.
Parameters
indexer: index, slice, or index arraySpecifies which rotation(s) to replace. A single indexer must be specified, i.e. as if indexing a 1 dimensional array or list.
value: `Rotation` instanceThe rotations to set.
Raises
: TypeError if the instance was created as a single rotation.
Notes
Aliases
scipy.spatial.transform.Rotation.__setitem__