Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: shape mismatch #1808

Closed
habibutsu opened this issue Aug 3, 2023 · 3 comments
Closed

ValueError: shape mismatch #1808

habibutsu opened this issue Aug 3, 2023 · 3 comments
Assignees

Comments

@habibutsu
Copy link

habibutsu commented Aug 3, 2023

I try to run this notebook from documentation, but getting following error:

ValueError: shape mismatch; data dimensions do not match the domain given in array schema ((300, 400) != (300, 400, 3))

for cell

with tiledb.open(dense_uri, mode='w') as A:
    A[0:px_rows, 0:px_cols] = im

tiledb version: 0.21.6

@habibutsu
Copy link
Author

It reproduce till 0.19.*, in which error changes

TileDBError: Error: Internal TileDB uncaught exception; WriterBase: Buffer sizes check failed; Invalid number of cells given for attribute 'rgb' (360000 != 120000)

@ihnorton ihnorton self-assigned this Aug 12, 2023
@ihnorton
Copy link
Member

Hi @habibutsu, apologies for the delay here - I am looking in to this.

@ihnorton
Copy link
Member

Hi @habibutsu, I've updated the current version of that notebook here: https://cloud.tiledb.com/notebooks/details/TileDB-Inc/b31aedc4-4f43-4287-8e95-fa7774168fc7/preview

with a small change to pass the image array as the expected dtype

with tiledb.open(dense_uri, mode='w') as A:
    A[0:152, 0:152] = im.view(A.dtype)

Hope this helps, please let us know if not and we'll be happy to reopen/discuss.

(PS: I'm not sure where the paul.fisher version is linked in the docs, but please let me know if you recall, so that we may update the link)

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

No branches or pull requests

2 participants