Convert the dataset in hdf5 format to hea format

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

还没有人认领这个 Issue。

评估

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

调研方向

首先,使用来自 code 15% 的 4096×12 float32 ndarray 重现报告的 wfdb.wrsamp 调用,并检查其值如何针对 format 32 进行验证。确定该行为是输入转换问题还是库错误;当数据集可以在没有报告的 IndexError 的情况下写入 hea format 时,即表示完成。

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

描述

Hi,
I want to convert the ECG dataset, code 15% into hea format:

wfdb.wrsamp(record_name=filename, fs=fs,
                units=['mV', 'mV', 'mV', 'mV', 'mV', 'mV', 'mV', 'mV', 'mV', 'mV', 'mV', 'mV'],
                sig_name=['I', 'II', 'III', 'aVR', 'aVL', 'aVF', 'V1', 'V2', 'V3', 'V4', 'V5', 'V6'], p_signal=data,
                write_dir=write_dir)

But, the dtype of data ndarray: {4096, 12} in code 15% is float32 and raise IndexError:
IndexError: Channel 1 contain values outside allowed range [-2147483648, 2147483647] for fmt 32.

What should I do for the error?

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

贡献指南

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

从这里开始

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

MIT-LCP/wfdb-python 的其他 Issue

查看 MIT-LCP/wfdb-python 的全部 Issue

相似的 Issue

更多 Data Engineering Issue

把新 issue 发到你的邮箱

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