File "/Users/iant/github/datashader/datashader/compiler.py", line 137, in compile_components
append, any_uses_cuda_mutex = make_append(bases, cols, calls, glyph, antialias)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/iant/github/datashader/datashader/compiler.py", line 415, in make_append
exec(code, namespace)
File "<string>", line 4
_10 = _7(x, y, _1, _4[i0], _8)
^
IndentationError: expected an indented block after 'if' statement on line 3
The cause of the error is the ds.max("value") which is used in both where reductions and only needs to be calculated once, but its reuse in the second where is not correct.
Using a
summary
reduction containing multiplewhere
reductions that use the sameselector
gives an error. Code to reproduce:Error produced is
The cause of the error is the
ds.max("value")
which is used in bothwhere
reductions and only needs to be calculated once, but its reuse in the secondwhere
is not correct.