Fix pre-release test failures for AnnData and read-only sparse matrices#118
Fix pre-release test failures for AnnData and read-only sparse matrices#118marcovarrone wants to merge 2 commits into
Conversation
Update the non_visium_adata fixture to cast X before AnnData construction, since newer AnnData no longer accepts a dtype keyword argument. Avoid in-place modification of read-only obsp views from h5ad-backed data by copying adjacency matrices before removing intra-cluster links in nhood enrichment, and handle non-writable sparse .data arrays in remove_intra_cluster_links by copying and writing results back to adata.obsp.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThree bug fixes address unsafe in-place mutation of sparse adjacency matrices: ChangesSparse adjacency matrix mutation safety
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
non_visium_adatafixture to cast coordinates to integers explicitly for more reliable AnnData construction.