-
Notifications
You must be signed in to change notification settings - Fork 154
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
Fix: Large number of dataframe columns (H5py Attr Limit) #1147
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1147 +/- ##
==========================================
- Coverage 86.68% 84.18% -2.50%
==========================================
Files 37 37
Lines 5932 5937 +5
==========================================
- Hits 5142 4998 -144
- Misses 790 939 +149
|
src/anndata/compat/__init__.py
Outdated
# actually 64kb is the limit, but this should be a conservative estimate | ||
if name in f: | ||
# TODO: One possible solution is to delete the group and recreate it | ||
raise ValueError( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
write_elem
is idempotent for the same key
anndata/src/anndata/_io/specs/registry.py
Lines 349 to 350 in 0302f23
elif k in store: | |
del store[k] |
…Limit) (#1582) Co-authored-by: Selman Özleyen <[email protected]>
Hi @ivirshup @brainfo,
This PR solves #874. I had a chat with h5py people and this was the simplest workaround they recommended. They also have no idea why it works. See h5py/h5py#2311 (comment).
Done: