Error when calling rdedfann(): read_edf() got an unexpected keyword argument 'delete_file'
Nessuno ha ancora preso questa issue.
- Lingua principale
- Jupyter Notebook
- Stelle
- 853
- Fork
- 322
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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'
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia in wfdb/io/convert/edf.py, intorno a rdedfann alla riga 1096, quindi esamina la chiamata a read_edf e gli argomenti accettati. Riproduci l’invocazione rdedfann segnalata con wfdb 4.0.0; l’attività è completata quando la chiamata non genera più un errore unexpected keyword argument.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- data
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100