Skip to content

Update ehrdata to adjust for anndata v0.12.13#240

Merged
eroell merged 12 commits into
mainfrom
update/anndata-0.12.13-compat
May 13, 2026
Merged

Update ehrdata to adjust for anndata v0.12.13#240
eroell merged 12 commits into
mainfrom
update/anndata-0.12.13-compat

Conversation

@eroell
Copy link
Copy Markdown
Collaborator

@eroell eroell commented May 12, 2026

Update ehrdata to adjust for anndata v0.12.13 and newer

Fixes #239

Details
Only internal changes that users should not be affected by.

  • AlignedMappingProperty3D(Layers3D) instead of the broken AlignedMappingProperty3D("layers", Layers3D)
  • Remove dtype kwarg (anndata dropped it).
  • The 3D-X validation in the X setter (_validate_array_3d, new_n_t, tem refresh)

Testing Details
These changes are tested upon a range of past and recent anndata versions:

  • A new testing job test-core with minimal dependencies in the CI can pick up the latest anndata release as the environment only imports minimal dependencies (e.g. no lamindb, no vitessce, which have upper bounds on anndata). This additional check is introduced as compatibility with latest anndata is a priority.
  • The full ehrdata testing suite as of today tests with anndata==0.12.10, which is due to lamindb being included which currently restricts to anndata<=0.12.10.
  • The ehrapy testing suite which runs on ehrapy tests with the latest anndata==0.12.14
  • Locally, I tested this also with anndata==0.12.6.

@eroell eroell merged commit 74bc9b5 into main May 13, 2026
11 of 12 checks passed
@eroell eroell deleted the update/anndata-0.12.13-compat branch May 13, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update ehrdata to work with anndata>=0.12.13

2 participants