scipp.where#

scipp.where(condition, x, y)#

Return elements chosen from x or y depending on condition.

Parameters:
Returns:

Variable | DataArray – Array with elements from x where condition is True and elements from y elsewhere.