Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

ENH: Fast adaptive line-noise removal via sinusoid regression (~50× speedup over spectrum_fit)

Đang mở
#14,392 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
8/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
data

Hướng nghiên cứu

This is a design proposal, not a ready task: it asks whether to add a regression-based line-noise method to notch_filter or to create mne.preprocessing.remove_line_noise(), and it replaces the existing spectrum_fit method. Read the linked threads (#7577, cbrnr/mnextend#9, pyprep#213) and wait for maintainer agreement on the API before touching code. Done would mean a maintainer-approved design followed by an implementation and tests against spectrum_fit.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hey @cbrnr, based on our discussion in

  • cbrnr/mnextend#9

I was wondering whether we could actually port the method to mne, long term. Replacing the current "spectrum_fit" method, which has been a pain point in the past, as discussed in

  • #7577

You were mentioning that you needed the flexibility and speed of shipping it on your own, and I totally understand that. But would you be open to having this method in mne, too? It'd make adoption easier in pyprep.

Of course, we need a few other stakeholders to agree that this would be an improvement, too. cc @larsoner for example.

Regarding integration here, the func could be exposed as:

  1. An additional method in notch_filter(method="regression") (or replacing spectrum_fit), and/or
  2. A dedicated preprocessing function: mne.preprocessing.remove_line_noise().

(I prefer 1.)

  • xref sappelhoff/pyprep#213
Ngôn ngữ chính
Python
Star
3.5k
Fork
1.6k
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
74

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của mne-tools/mne-python

Tất cả issue của mne-tools/mne-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.