8000 `Array.__setitem__` fails on size 0 · Issue #11800 · dask/dask · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Array.__setitem__ fails on size 0 #11800
Open
@crusaderky

Description

@crusaderky

As of Dask 2025.2.0:

>>> import dask.array as da
>>> a = da.zeros((0, 2))
>>> b = da.ones((0, 2))
>>> a[:, :] = b
ValueError: shape mismatch: value array of shape (0, 2) could not be broadcast to indexing result of shape (0, 2)

Impact

This edge case by itself is unimportant; however it has a magnified impact in array_api_tests as it forces all tests for __setitem__ to be XFAILed due to how hypothesis testing works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arraybugSomething is brokenneeds attentionIt's been a while since this was pushed on. Needs attention from the owner or a maintainer.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0