scipp.where

scipp.where(condition, x, y)

Return elements chosen from x or y depending on condition.

Parameters
Returns

Variable with elements from x where condition is True, and elements from y elsewhere.

Seealso

scipp.choose()

Return type

scipp._scipp.core.Variable