-
Notifications
You must be signed in to change notification settings - Fork 26
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
[Bug] SparseNDArray incorrect shape #1327
Comments
@ivirshup thanks! There's been quite a bit of discussion here and this is by (current) design. The shape is the capacity; the dimensions of what's actually there are That said, I know this is counter-intuitive, as we are using At the very least, there's a documentation opportunity here. Beyond that, to consider changing the semantics of the |
Thanks for the quick response! Out of curiosity, what's the definition of "capacity" here? Maybe I would note that this also carries through to the in-memory representations: exp.ms["test-shape"].X["data"].read().coos().concat().to_scipy()
# <9223372036854773760x9223372036854773760 sparse matrix of type '<class 'numpy.float64'>'
# with 1000 stored elements in COOrdinate format> |
@ivirshup yes, by "capacity" and "max shape" I think we mean the same thing. If you If you |
Discussion is moved to the tracking issue #1445. |
Describe the bug
SparseNDArrays seem to report their shape incorrectly (at least from expected value).
To Reproduce
Provide a code example and any sample input data (e.g. an H5AD) as an attachment to reproduce this behavior.
I would have expected the array to be 100 x 100
Versions (please complete the following information):
tiledbsoma.version 1.2.1
TileDB-Py tiledb.version() (0, 21, 2)
TileDB core version 2.15.1
libtiledbsoma version() libtiledbsoma=;libtiledb=2.15.0
python version 3.10.10.final.0
OS version Darwin 20.6.0
The text was updated successfully, but these errors were encountered: