This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / 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 array

Specifies which rotation(s) to replace. A single indexer must be specified, i.e. as if indexing a 1 dimensional array or list.

value : `Rotation` instance

The rotations to set.

Raises

: TypeError if the instance was created as a single rotation.

Notes

Aliases

  • scipy.spatial.transform.Rotation.__setitem__