Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Dec 16, 2021
1 parent 2ab3a20 commit c57f906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glue/core/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1851,7 +1851,7 @@ def compute_histogram(self, cids, weights=None, range=None, bins=None, log=None,
# Some operations below don't work well when mixing dask and non-dask
# arrays, so we make sure that if one is a dask array we convert the
# other one too.
if DASK_INSTALLED:
if DASK_INSTALLED and ndim > 1:
if isinstance(x, da.Array) and not isinstance(y, da.Array):
y = da.asarray(y)
if not isinstance(x, da.Array) and isinstance(y, da.Array):
Expand Down

0 comments on commit c57f906

Please sign in to comment.