ALL software version info
(this library, plus any other relevant software, e.g. bokeh, python, notebook, OS, browser, etc should be added within the dropdown below.)
Software Version Info
Description of expected behavior and the observed behavior
The mode reduction works with QuadMeshRectilinear but fails for QuadMeshCurvilinear
Complete, minimal, self-contained example code that reproduces the issue
import numpy as np
import xarray as xr
import datashader as dsh
import datashader.transfer_functions as tf
ds = xr.Dataset(
{"foo": (("x", "y"), np.arange(120).reshape(30, 4))},
coords={"x": np.arange(30), "y": np.arange(4)},
).drop_indexes(("x", "y"))
# -----------> commenting out the bottom line fixes it
ds["x"], ds["y"] = xr.broadcast(ds.x, ds.y)
cvs = dsh.Canvas(x_range=(0, 3), y_range=(0, 4))
mesh = cvs.quadmesh(ds, x="x", y="y", agg=dsh.reductions.mode("foo"))
tf.shade(mesh)
Stack traceback and/or browser JavaScript console output
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Failed in nopython mode pipeline (step: nopython frontend)
Failed in nopython mode pipeline (step: nopython frontend)
Untyped global name '_2': Cannot determine Numba type of <class 'function'>
File "<string>", line 2:
<source missing, REPL[/exec](http://localhost:8888/exec) in use?>
During: Pass nopython_type_inference
During: resolving callee type: type(CPUDispatcher(<function append at 0x31afee480>))
During: typing of call at <perform_extend> (55)
During: resolving callee type: type(CPUDispatcher(<function append at 0x31afee480>))
During: typing of call at <perform_extend> (118)
During: resolving callee type: type(CPUDispatcher(<function append at 0x31afee480>))
During: typing of call at <perform_extend> (55)
File "<perform_extend>", line 55:
<source missing, REPL[/exec](http://localhost:8888/exec) in use?>
During: Pass nopython_type_inference
During: resolving callee type: type(CPUDispatcher(<function perform_extend at 0x31761bce0>))
During: typing of call at <extend_cpu> (26)
During: resolving callee type: type(CPUDispatcher(<function perform_extend at 0x31761bce0>))
During: typing of call at <extend_cpu> (26)
File "<extend_cpu>", line 26:
<source missing, REPL[/exec](http://localhost:8888/exec) in use?>
During: Pass nopython_type_inference
ALL software version info
(this library, plus any other relevant software, e.g. bokeh, python, notebook, OS, browser, etc should be added within the dropdown below.)
Software Version Info
Description of expected behavior and the observed behavior
The mode reduction works with QuadMeshRectilinear but fails for QuadMeshCurvilinear
Complete, minimal, self-contained example code that reproduces the issue
Stack traceback and/or browser JavaScript console output