scverse / scverse/spatialdata-plot

`pl.show()` leading to `ValueError` due to mismatch between number of axes and number of panels

未关闭
#749 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Python
星标
86
派生
21
平均合并
14 小时 50 分钟
30 天内合并 PR
3

描述

Report

Blocking a release. To reproduce please run notebook_spatial_query.ipynb from spaitaldata-notebooks.

Some notebooks started throwing some ValueError due to a mismatch between the number of axes and the number of panels in the plot. If possible, I would try to be backward compatible.

INFO - SpatialData object, with associated Zarr store: /Users/macbook/embl/projects/basel/spatialdata-integration-testing/dependencies/spatialdata-sandbox/visium/data.zarr
INFO - ├── Images
INFO - │     ├── 'ST8059048_hires_image': DataArray[cyx] (3, 2000, 1969)
INFO - │     ├── 'ST8059048_lowres_image': DataArray[cyx] (3, 600, 591)
INFO - │     ├── 'ST8059050_hires_image': DataArray[cyx] (3, 2000, 1968)
INFO - │     └── 'ST8059050_lowres_image': DataArray[cyx] (3, 600, 590)
INFO - ├── Shapes
INFO - │     ├── 'ST8059048': GeoDataFrame shape: (2987, 2) (2D shapes)
INFO - │     └── 'ST8059050': GeoDataFrame shape: (3497, 2) (2D shapes)
INFO - └── Tables
INFO -       └── 'table': AnnData (6484, 31053)
INFO - with coordinate systems:
INFO -     ▸ 'ST8059048', with elements:
INFO -         ST8059048_hires_image (Images), ST8059048 (Shapes)
INFO -     ▸ 'ST8059048_downscaled_lowres', with elements:
INFO -         ST8059048_lowres_image (Images), ST8059048 (Shapes)
INFO -     ▸ 'ST8059050', with elements:
INFO -         ST8059050_hires_image (Images), ST8059050 (Shapes)
INFO -     ▸ 'ST8059050_downscaled_lowres', with elements:
INFO -         ST8059050_lowres_image (Images), ST8059050 (Shapes)
INFO - 
INFO - Ending Cell 3------------------------------------------
INFO - Executing Cell 4---------------------------------------
INFO - Ending Cell 4------------------------------------------
INFO - Executing Cell 5---------------------------------------
INFO - /Users/macbook/embl/projects/basel/spatialdata-integration-testing/dependencies/spatialdata/src/spatialdata/_core/spatialdata.py:170: UserWarning: The table is annotating 'ST8059050', which is not present in the SpatialData object.
INFO -   self.validate_table_in_spatialdata(v)
INFO - /Users/macbook/embl/projects/basel/spatialdata-integration-testing/dependencies/spatialdata/src/spatialdata/_core/spatialdata.py:170: UserWarning: The table is annotating 'ST8059050', which is not present in the SpatialData object.
INFO -   self.validate_table_in_spatialdata(v)

Again, session_info2 seems to be uninformative. Please let me know if you can't reproduce and I will dig deeper.

Versions
| Dependency                    | Version |
| ----------------------------- | ------- |
| sphinxcontrib-devhelp         | 2.0.0   |
| sphinxcontrib-htmlhelp        | 2.1.0   |
| sphinxcontrib-serializinghtml | 2.0.0   |
| session-info2                 | 0.3     |
| sphinxcontrib-qthelp          | 2.0.0   |
| sphinxcontrib-bibtex          | 2.6.5   |
| sphinxcontrib-jsmath          | 1.0.1   |
| sphinxcontrib-applehelp       | 2.0.0   |
| setuptools                    | 80.9.0  |

| Component | Info                                                                             |
| --------- | -------------------------------------------------------------------------------- |
| Python    | 3.13.0 | packaged by conda-forge | (main, Nov 27 2024, 19:18:26) [Clang 18.1.8 ] |
| OS        | macOS-26.5.1-arm64-arm-64bit-Mach-O                                              |
| Updated   | 2026-07-02 17:52                                                                 |

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先运行 spaitaldata-notebooks 中的 notebook_spatial_query.ipynb,并复现由 pl.show() 引发的 ValueError。追踪绘图轴与面板之间的不匹配,然后验证 notebook 能够成功完成,同时在可能的情况下保持向后兼容性。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
data-visualization
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
需要澄清
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。