Allow overwriting incorrect units in EDF header with mne.io.read_raw_edf
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue nà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
- 58/100
Hướng nghiên cứu
Start with the units handling in mne/io/edf/edf.py, especially the check near line 494 that rejects replacing units already specified in the EDF header. Trace the existing mne.io.read_raw_edf tests for unit overrides and add coverage for replacing a specified unit; done means an incorrect header unit can be overridden and the resulting data can be exported to EDF.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the new feature or enhancement
An EDF file I have has some channels that are in arbitrary units (i.e. misc channels) but the header incorrectly specifies uV. There appears to be no easy way to fix this in MNE directly: I'll need to correct the header externally.
This causes downstream issues when exporting to EDF because the range now has too many characters to fit in an EDF header field (edfio gives up).
Describe your proposed implementation
Would it be possible to update the units parameter of mne.io.read_raw_edf to allow over-writing an existing unit? Currently, this raises an error: only units that are unspecified in the EDF header are allowed to be modified on opening them.
Describe possible alternatives
Using an external tool to fix the header. This is annoying because I expected this to be possible with just MNE.
Additional context
No response
- Ngôn ngữ chính
- Python
- Star
- 3.6k
- Fork
- 1.6k
- Merge trung bình
- 1 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 73
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 mne-tools/mne-python
-
BUG
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
mne-tools/mne-python#14478 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
BUG
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
mne-tools/mne-python#14477 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ENH: Add `description` filter parameter to `Raw.crop_by_annotations()`Có thể đã có người làm @aman-coder03 đã nhận 210 ngày trước. Đang mởENH
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
mne-tools/mne-python#13743 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Wrong exponent in the denominator of the transfer function in the filtering background tutorialCó thể đã có người làm @qxzzxq đã nhận hôm nay. Đang mởDOC
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 20/100
mne-tools/mne-python#14486 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
cannot plot into matplotlib subfigureCó thể đã có người làm @ishaaaan17 đã nhận hôm nay. Đang mởBUG
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
mne-tools/mne-python#14481 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của mne-tools/mne-python
Issue tương tự
-
New InternshipĐang mởnew_internship
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
get_graph warns that the oneway column is missing when no way has a oneway tagCó thể đã có người làm @HTenkanen đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
cython/cython#8110 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
fix: security 🔐 style: article/section 📝 system: data-mgmt 🗃️ system: security 🔐 system: software 💻
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
uabrc/uabrc.github.io#1267 ·
-
Link Checker ReportĐang mởBot Type: Bug Type: Documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày