ann2rr filters intervals by length instead of by time in the record
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 72/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 853
- Fork
- 324
- Merge trung bình
- 1 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 36
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MIT-LCP/wfdb-python
-
Record.wrsamp() fails with a TypeError when the record has no d_signalCó thể đã có người làm @divya-git03 đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
MIT-LCP/wfdb-python#618 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
MIT-LCP/wfdb-python#590 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pandas 3.0: three remaining set_index(<str column>.values) calls still raise TypeError (custom-labels paths)Có thể đã có người làm @wenh06 đã nhận 9 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
MIT-LCP/wfdb-python#574 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
MIT-LCP/wfdb-python#568 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add validation of segments when writing a `MultiRecord`Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
MIT-LCP/wfdb-python#557 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của MIT-LCP/wfdb-python
Issue tương tự
-
Add: Russia-24 +2Đang mởchannels:add check:passed
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
lightseekorg/TorchSpec#209 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Update required: BelizeĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Add connection-allowlistsĐang mởnew spec review
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
w3c/browser-specs#2708 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày