Error when calling rdedfann(): read_edf() got an unexpected keyword argument 'delete_file'
オープン
まだ誰も着手していません。
- 主要言語
- Jupyter Notebook
- スター
- 853
- フォーク
- 322
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi!
I just encounter strange error. It seems for me like function rdedfann doesn't work at all. I confused, because it seems it doesn't represent any specific use case, just ordinary edf file. So, seems strange to me.
I just installed new 4.0.0 version and got this bug.
wfdb: 4.0.0
When calling on edf file:
from wfdb.io.convert.edf import rdedfann
rdedfann(f"data/{folder}/{filename}")
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [6], in <cell line: 2>()
1 from wfdb.io.convert.edf import rdedfann
----> 2 rdedfann(f"data/{folder}/{filename}")
File ~/.venv/fecg/lib/python3.8/site-packages/wfdb/io/convert/edf.py:1096, in rdedfann(record_name, pn_dir, delete_file, info_only, record_only, verbose)
1087 raise Exception(
1088 "Both `info_only` and `record_only` are set. Only one "
1089 "can be set at a time."
1090 )
1092 # According to the EDF+ docs:
1093 # "The coding is EDF compatible in the sense that old EDF software would
1094 # simply treat this 'EDF Annotations' signal as if it were a (strange-
1095 # looking) ordinary signal"
-> 1096 rec = read_edf(
1097 record_name,
1098 pn_dir=pn_dir,
1099 delete_file=delete_file,
1100 record_only=True,
1101 rdedfann_flag=True,
1102 )
1104 # Convert from array of integers to ASCII strings
1105 annotation_string = ""
TypeError: read_edf() got an unexpected keyword argument 'delete_file'
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
wfdb/io/convert/edf.py の1096行目付近にある rdedfann から始め、続いて read_edf の呼び出しと、受け付けられる引数を確認してください。wfdb 4.0.0 で報告された rdedfann の呼び出しを再現し、呼び出しで unexpected keyword argument エラーが発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- data
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100