Open ivirshup opened 2 years ago
Yes, it was mistake from my side to put one-d array (forgot to reshape it). But I got no warning when I made adata and then just by chance figured out what was the reason.
This issue has been automatically marked as stale because it has not had recent activity. Please add a comment if you want to keep the issue open. Thank you for your contributions!
@ivirshup @flying-sheep Should this work actually? Or should we start enforcing a multi-dimensional-ness for obsm
? https://anndata.readthedocs.io/en/latest/generated/anndata.AnnData.obsm.html#anndata.AnnData.obsm makes it pretty clear that "Stores for each key a two or higher-dimensional" - does this mean that even something with shape [10, 1]
should be disallowed?
Seen in comment by @Hrovatin in https://github.com/theislab/anndata/issues/501#issuecomment-979916818_
Traceback
```pytb --------------------------------------------------------------------------- IndexError Traceback (most recent call last) /var/folders/bd/43q20k0n6z15tdfzxvd22r7c0000gn/T/ipykernel_14520/2434769132.py inOff the top of my head, I can't think of a reason this working would be inconsistent with the anndata model. Generally I would expect people to put 1d arrays in
obs
though.Might have implications for the concatenation of awkward arrays (#647)