Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Possible scaling error for 0 and Nyquist frequencies in multitaper spectra

オープン
#14,426 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@badrisatyam1-ctrl がすでに取り組んでいます。

2026年10月17日 から。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
56/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
data

調査の方向性

Start by reading _psd_from_mt in mne/time_frequency/multitaper.py around lines 200–218 and compare its one-sided scaling with the SciPy spectrogram behavior linked in the issue. Check how the multitaper spectrum construction represents the 0 and Nyquist bins, then identify or add focused tests for those cases. Done means the endpoint bins have the expected scaling while other one-sided bins remain correctly scaled.

索引モデルが issue の本文から書いたものです。

説明

_psd_from_mt expects the coefficients for a one-sided spectra, and as such doubles the values of frequency bins. However, I would expect the 0 and Nyquist frequencies to be excluded from this, e.g., as in SciPy's spectrogram. Without the frequency bin info, _psd_from_mt just scales everything.

https://github.com/mne-tools/mne-python/blob/8f498626a53704a6a96bcd8a11e22cbd8866efa5/mne/time_frequency/multitaper.py#L200-L218

I tried to look for somewhere else where this might be accounted for, but nothing popped out. Apologies if I missed some other scaling in the MT spectra construction or something.

主要言語
Python
スター
3.6k
フォーク
1.6k
平均マージ
1日 11時間
マージ済み PR(30日)
82

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

mne-tools/mne-python のほかの issue

mne-tools/mne-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。