Skip to content

Commit

Permalink
Revert dims change
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Nov 15, 2024
1 parent 31e30f5 commit 725d46b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion holoviews/operation/datashader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ def _process(self, element, key=None):
# dimension or by adding a z-dimension
kdims = [kdim.name for kdim in kdims]
if sel_cols := array.attrs.get("selector_columns"):
array = array.drop(sel_cols)
array = array.drop_vars(sel_cols)
if not element.interface.packed(element):
if len(vdim) == 1:
array = array[vdim[0].name]
Expand Down
3 changes: 1 addition & 2 deletions holoviews/plotting/bokeh/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ def _init_tools(self, element, callbacks=None):
def on_change(attr, old, new):
if np.isinf(new).all():
return
# Uses dims as that is what order the data is
data_sel = self._hover_data.sel(**dict(zip(self._hover_data.dims, new)), method="nearest").to_dict()
data_sel = self._hover_data.sel(**dict(zip(self._hover_data.coords, new)), method="nearest").to_dict()
# TODO: When ValueOf support formatter remove the rounding
# https://github.com/bokeh/bokeh/issues/14123
data_coords = {dim: round(data_sel['coords'][dim]['data'], 3) for dim in coords}
Expand Down

0 comments on commit 725d46b

Please sign in to comment.