scipp.any#
- scipp.any(x, dim=None)#
Logical OR over input values.
- Parameters:
x (
scipp.typing.VariableLike
) – Input data.dim (
Optional
[str
], default:None
) – Optional dimension along which to calculate the OR. If not given, the OR over all dimensions is calculated.
- Returns:
TypeVar
(VariableLikeType
,Variable
,DataArray
,Dataset
,DataGroup
[Any
]) – A variable containingTrue
if any input values (along the given dimension) areTrue
.
See also
scipp.all
Logical AND.