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 containing True if any input values (along the given dimension) are True.

See also

scipp.all

Logical AND.