csv2ann truncates paths containing dots, lacks write_dir, tests and docs
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with wfdb/io/convert/csv.py, especially csv2ann near the referenced line, and compare its output path handling with csv_to_wfdb and wrann. Add tests for dotted paths and write_dir, then update docs/convert.rst to list csv2ann; done means path handling is consistent and the function is covered and documented.
由索引模型根据 Issue 内容生成。
描述
Found while reviewing #591.
csv2ann in wfdb/io/convert/csv.py has some problems:
- The record name is derived with
file_name.split(".")[0](https://github.com/MIT-LCP/wfdb-python/blob/b8914e1c9c777c45571c894cb7b6579550a86f13/src/wfdb/io/convert/csv.py#L627), which breaks on paths containing dots:./x.csvbecomes""anddata/v1.2/x.csvbecomesdata/v1.os.path.splitextwould avoid this. (csv_to_wfdbalso uses the base name only, so the expected output location should be the same for both.) - There is no
write_dirparameter, unlikecsv_to_wfdbandwrann, so output paths depend on the input path and the current directory. - It has no tests.
- It is not included in the API docs (
docs/convert.rstonly listscsv_to_wfdb).
- 主要语言
- Jupyter Notebook
- 星标
- 853
- 派生
- 324
- 平均合并
- 17 小时 39 分钟
- 30 天内合并 PR
- 10
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MIT-LCP/wfdb-python 的其他 Issue
-
难度 1/5 1-3 小时 新手友好度 83/100
MIT-LCP/wfdb-python#594 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 72/100
MIT-LCP/wfdb-python#590 ·
维护者通常 1 天内回复
-
pandas 3.0: three remaining set_index(<str column>.values) calls still raise TypeError (custom-labels paths)可能已有人在做 @wenh06 于 7 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
MIT-LCP/wfdb-python#574 · 1 条评论 ·
维护者通常 1 天内回复
-
`find_local_peaks` ignores the sample at `i + radius`, so points on a rising slope are returned as peaks可能已有人在做 @rmz-oz 于 28 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
MIT-LCP/wfdb-python#572 ·
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 67/100
MIT-LCP/wfdb-python#593 ·
维护者通常 1 天内回复
查看 MIT-LCP/wfdb-python 的全部 Issue
相似的 Issue
-
status: waiting-for-triage
难度 2/5 1-3 小时 新手友好度 78/100
spring-projects/spring-framework#37614 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
pydantic/pydantic-ai#12091 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
paperclipai/paperclip#18396 ·
维护者通常 1 天内回复