Repository navigation
fix: keep legacy graph metrics usable without anndata.acc - #4532
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N
❌ 4 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Member
|
Please fill out our PR template. |
Contributor
Author
|
Sorry about that. The template is filled in now. |
Member
|
whoops, indeed that import was in the wrong spot! no need for a test for something this trivial though. |
flying-sheep
pushed a commit
that referenced
this pull request
Nov 26, 2026
…able without anndata.acc) (#4551) Co-authored-by: Ricardo Pinho <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
morans_i and gearys_c raise ModuleNotFoundError for AnnData input when anndata.acc is unavailable, including supported anndata 0.12.14. Calling either metric on AnnData with a connectivities graph reproduces it, while passing the graph and expression array directly works. The patch imports the accessor parser only when vals is a string that needs parsing. The test blocks the accessor import for the AnnData call and compares the result with the array call for both metrics.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N