{ } Raw JSON

bundles / scipy 1.17.1 / scipy / spatial / transform / _rotation / Rotation / __bool__

function

scipy.spatial.transform._rotation:Rotation.__bool__

source: /scipy/spatial/transform/_rotation.py :2614

Signature

def   __bool__ ( self )  →  bool

Summary

Comply with Python convention for objects to be True.

Extended Summary

Required because Rotation.__len__() is defined and not always truthy.

Aliases

  • scipy.spatial.transform.Rotation.__bool__