Repository navigation
feat!: Unify X and layers - #1707
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1707 +/- ##
==========================================
- Coverage 87.50% 85.64% -1.87%
==========================================
Files 49 49
Lines 7725 7766 +41
==========================================
- Hits 6760 6651 -109
- Misses 965 1115 +150
|
|
So re: the backed question, I think the answer is not to get rid of it, but to clarify its behavior. To do that, I think we should merge #1927 first, which may include a breaking change. If we stop allowing overriding of on-disk stores (which currently relies on inheritance form scipy.sparse private methods), then this question becomes much more simplified. The next step after #1927 would probably be to simplify it. From what I can tell, the reaosn we need to track if the file is open or not is because if writing. If everything were purely read-only, I think it would be less of an issue. My vision there would be in "backed" mode (after the two above points are implemented), we would simply take the |
Co-authored-by: Philipp A. <[email protected]>
|
My rough plan here:
|
|
For Put that in the release note. |
…verse#1707 scverse#1707 (feat!: Unify X and layers) moved X into the layers mapping under the `None` key. Two aligned_axis_key_join layer-key tests asserted `sorted(res.layers.keys())` against named keys only, which now fails with TypeError when None is present. Switched to set comparison and explicitly included the `None` (X) key in both the outer-union and inner-intersection expectations.
The anndata>=0.12.19,<0.13 pin capped pandas below 3.0, silently reverting it 3.0.5 -> 2.3.3 across every image. anndata 0.13.3 writes h5ad correctly under pandas 3, so the pin was never the only cure; its cost, X exposed as layers[None], is deliberate upstream design (scverse/anndata#1707), not a bug awaiting a fix. Adds an explicit pandas>=3 floor so a transitive cap fails the resolve instead of silently downgrading the stack again. Replaces the layers guard, which asserted against intended upstream API, and adds a pandas major-version guard. Verified: 384 passed, 0 failed, GPU tests included.
XareNone#678TODO:
dtypearg: just remove? or ignore+warning? (unless we already do that, then remove)XareNone#678