Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

visium_hd reader: load_segmentations_only = False still loads segmentation results

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

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
data

调研方向

从 visium_hd() reader 开始,跟踪 load_segmentations_only 如何控制分割结果和分箱数据的加载。将实现与文档中描述的行为进行比较,然后定义 reader 应如何表示加载分箱数据、分割结果或两者,并验证每个受支持的选项。

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

描述

Hi, I am on spatialdata-io 0.5.1 and I noticed that for the visium_hd() reader, the load_segmentations_only=False does not strictly replicate legacy behavior.

The docstring states:

load_segmentations_only
      If `True`, only the segmented cell boundaries and their associated counts will be loaded. All binned data
      will be skipped. If `False`, only the binned data will be loaded (which is consistent with legacy behavior).
      If `None` (default), it will be equivalent to `False`, but a deprecation warning will be raised to inform users that
      in future releases the default value will be changed to `True`. To avoid the warning, explicitly set this parameter to
      `False` or `True`.

However, regardles of whether load_segmentations_only is True or False, segmentation results are loaded if present. load_segmentations_only currently only seems to have an effect on whether the binned data is loaded or not.

I think the desired behavior would indeed be that the users has a choice of whether to load the binned data, the segmentation results or both. Note that even if the reader behaved as stated in the docstring, this would then not give you the option of reading in both.

Thanks!

主要语言
Python
星标
103
派生
64
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

scverse/spatialdata-io 的其他 Issue

查看 scverse/spatialdata-io 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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