Skip to content

Commit

Permalink
Fix span calc
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Sep 19, 2024
1 parent 3481244 commit a7368b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion holoviews/operation/datashader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ def _process(self, element, key=None):
if self.p.clims:
shade_opts['span'] = self.p.clims
elif ds_version > Version('0.5.0') and self.p.cnorm != 'eq_hist':
shade_opts['span'] = (array.min(), array.max())
shade_opts['span'] = (array.min().item(), array.max().item())

params = dict(get_param_values(element), kdims=kdims,
bounds=bounds, vdims=RGB.vdims[:],
Expand All @@ -1364,6 +1364,7 @@ def _process(self, element, key=None):
img = xr.DataArray(arr, coords=coords, dims=(yd.name, xd.name, 'band'))
return RGB(img, **params)
else:
print(shade_opts['span'])
img = tf.shade(array, **shade_opts)
return RGB(self.uint32_to_uint8_xr(img), **params)

Expand Down

0 comments on commit a7368b6

Please sign in to comment.