Closed AndrewLevin closed 5 months ago
Just to note at first: this is not the case for arrays (phew!).
In [8]: (arr - 1).compute()
Out[8]: <Array [0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4] type='15 * float64'>
In [9]: (1 - arr).compute()
Out[9]: <Array [0, -1, -2, -3, -4, 0, ..., -4, 0, -1, -2, -3, -4] type='15 * float64'>
One-element arrays are OK too.
The subtraction binary operator for scalars seems to reverse the order of the operands. If I run the code below using dask_awkward version 2024.6.0, the result is
1
, while it should be-1
.