I suspect this is because larray.core.expr.BinaryOp does not override __bool__ and is thus truthy.
As a related note, the multiply-by-filter workaround, only works when the array is first. I suspect the r* variants of ExprNode binops are broken. This is correct :
I suspect this is because larray.core.expr.BinaryOp does not override
__bool__
and is thus truthy.As a related note, the multiply-by-filter workaround, only works when the array is first. I suspect the r* variants of ExprNode binops are broken. This is correct :
This is not correct (but making this work is a only high priority, not blocker priority, as this isn't silent) :