Skip to content

Commit

Permalink
Upgrade for compatibility with latest dask release (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
GenevieveBuckley authored Jul 29, 2021
1 parent 90cec19 commit bc39edb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dask_image/ndmeasure/_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ def _norm_input_labels_index(image, label_image=None, index=None):
label_image = da.ones(
image.shape, dtype=int, chunks=image.chunks,
)
index = da.ones(tuple(), dtype=int, chunks=tuple())
index = da.from_array(np.array(1, dtype=int))
elif index is None:
label_image = (label_image > 0).astype(int)
index = da.ones(tuple(), dtype=int, chunks=tuple())
index = da.from_array(np.array(1, dtype=int))

label_image = da.asarray(label_image)
index = da.asarray(index)
Expand Down

0 comments on commit bc39edb

Please sign in to comment.