Skip to content

Commit

Permalink
More...
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Nov 3, 2024
1 parent ed250cc commit b440c54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/element/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ def __init__(self, data, kdims=None, vdims=None, **params):
if ((hasattr(data, 'shape') and data.shape[-1] == 4 and len(vdims) == 3) or
(isinstance(data, tuple) and isinstance(data[-1], np.ndarray) and data[-1].ndim == 3
and data[-1].shape[-1] == 4 and len(vdims) == 3) or
(isinstance(data, dict) and (*(dimension_name(vd) for vd in vdims), alpha.name) in data)):
(isinstance(data, dict) and (*map(dimension_name, vdims), alpha.name) in data)):
# Handle all forms of packed value dimensions
vdims.append(alpha)
super().__init__(data, kdims=kdims, vdims=vdims, **params)
Expand Down

0 comments on commit b440c54

Please sign in to comment.