ann2rr filters intervals by length instead of by time in the record
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 72/100
Direção de pesquisa
The ann2rr function lives in wfdb/processing.py; start by reading its docstring and the filtering lines shown. Compute each interval's end time as cumulative sum of RR intervals from start_time, then keep those between bounds. Done means ann2rr('sample-data/100','atr', start_time=0.9) returns intervals after 0.9s, and tests pass.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
The ann2rr docstring describes start_time and stop_time as "the time to start the intervals" and "the time to stop the intervals", in seconds. But they're compared with the length of each interval, not with its position in the record:
time_interval = rr_interval / ann.fs
if start_time is not None:
time_interval = time_interval[(time_interval > start_time).astype(bool)]
if stop_time is not None:
time_interval = time_interval[(time_interval < stop_time).astype(bool)]
For example, with record 100 (360 Hz):
from wfdb import processing
len(processing.ann2rr("sample-data/100", "atr")) # 2274
processing.ann2rr("sample-data/100", "atr", start_time=0.9) # 30 intervals, all longer than 0.9 s
processing.ann2rr("sample-data/100", "atr", stop_time=0.5) # 2 intervals, both shorter than 0.5 s
So start_time=0.9 drops every interval shorter than 0.9 s, rather than the intervals before 0.9 s into the record.
The WFDB ann2rr program's -f and -t options select annotations by time in the record. ann2rr should probably do the same: keep the intervals that end between start_time and stop_time, measuring the first interval from start_time, as ann2rr -f does.
This is separate from #584, which changes which annotations are used but leaves this filtering unchanged.
- Linguagem predominante
- Jupyter Notebook
- Estrelas
- 853
- Forks
- 324
- Merge médio
- 15h
- PRs com merge (30d)
- 32
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de MIT-LCP/wfdb-python
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
MIT-LCP/wfdb-python#618 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
MIT-LCP/wfdb-python#590 ·
Mantenedores costumam responder em até 1 dia
-
pandas 3.0: three remaining set_index(<str column>.values) calls still raise TypeError (custom-labels paths)Talvez já em andamento @wenh06 assumiu há 8 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
MIT-LCP/wfdb-python#574 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
`find_local_peaks` ignores the sample at `i + radius`, so points on a rising slope are returned as peaksTalvez já em andamento @rmz-oz assumiu há 29 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
MIT-LCP/wfdb-python#572 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
MIT-LCP/wfdb-python#568 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de MIT-LCP/wfdb-python
Issues semelhantes
-
Fix WeatherDataset negative index reporting, key type validation, and window parameter validationTalvez já em andamento @muskan-creates352 assumiu hoje. Aberta
Dificuldade 2/5 Meio dia Facilidade para iniciantes 82/100
mllam/neural-lam#853 ·
Mantenedores costumam responder em até 2 dias
-
request-theme
Dificuldade 2/5 Menos de uma hora Facilidade para iniciantes 62/100
LizardByte/ThemerrDB#9678 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
approved correction metadata
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
acl-org/acl-anthology#10723 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
retentioneering/retentioneering-tools#231 ·
Mantenedores costumam responder em até 1 dia