MIT-LCP / MIT-LCP/wfdb-python

Change approach for allowing `seg_name` and `seg_len` to be lists

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

还没有人认领这个 Issue。

主要语言
Jupyter Notebook
星标
853
派生
322
PR 合并指标
30 天内没有已合并 PR

描述

In https://github.com/MIT-LCP/wfdb-python/pull/514 an update was made to allow seg_name and seg_len to be lists. This is needed for writing a MultiSegmentRecord.

@bemoody , suggested an alternate approach:

But I think what we really want is, rather than changing the types in SEGMENT_SPECS, we want to add "seg_name" and "seg_len" to LIST_FIELDS (wfdb/io/record.py, line 1675.)

This issue is being opened to track implementing this alternate approach.

贡献指南

这个仓库没有索引到贡献指南

从这里开始

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

调研方向

首先检查 wfdb/io/record.py 中约第 1675 行附近的 LIST_FIELDS,以及当前对 SEGMENT_SPECS 的处理方式。当 seg_name 和 seg_len 通过 LIST_FIELDS 进行处理,并且写入 MultiSegmentRecord 仍继续支持它们时,此更改即完成。

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

评估

技术栈
python
领域
data
Issue 类型
重构
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
48/100

把新 issue 发到你的邮箱

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