Skip to content

Commit

Permalink
add skip_trailing_dim to _ravel_shape_indices
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-gould committed Jul 12, 2024
1 parent 09aabef commit ea976ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dask_image/ndmeasure/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def labeled_comprehension(image,
args = (image,)
if pass_positions:
positions = _utils._ravel_shape_indices(
image.shape, chunks=image.chunks
image.shape, chunks=image.chunks, skip_trailing_dim=image.ndim != label_image.ndim
)
args = (image, positions)

Expand Down

0 comments on commit ea976ab

Please sign in to comment.