Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Possible scaling error for 0 and Nyquist frequencies in multitaper spectra

Aperta
#14,426 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@badrisatyam1-ctrl ci sta già lavorando.

Dal 17/10/2026.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
56/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
data

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

_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.

Lingua principale
Python
Stelle
3.5k
Fork
1.6k
Merge medio
1g 2h
PR unite (30g)
72

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mne-tools/mne-python

Tutte le issue di mne-tools/mne-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.