Skip to content

Incorrect rechunking when input array only has 1 chunk in rechunk_for_blockwise #516

Description

@joshua-gould

Example:

import dask.array as da
import flox
import numpy as np

# works
assert ((3, 2),) == flox.rechunk_for_blockwise(da.zeros(5, chunks=(1,)), 0, np.array([1, 1, 1, 2, 2]))[1].chunks

# fails
assert ((3, 2),) == flox.rechunk_for_blockwise(da.zeros(5), 0, np.array([1, 1, 1, 2, 2]))[1].chunks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions