Skip to content

Commit 9df9b22

Browse files
committed
Shorten comment
1 parent d48fdf6 commit 9df9b22

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

mne/time_frequency/multitaper.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,7 @@ def _mt_spectra(x, dpss, sfreq, n_fft=None, remove_dc=True):
274274
# only keep positive frequencies
275275
freqs = rfftfreq(n_fft, 1.0 / sfreq)
276276

277-
# Compute the tapered FFTs in one batched call across all leading dims.
278-
# This is faster than looping over signals, at the cost of a larger
279-
# temporary than the old per-signal FFT path.
277+
# compute FFTs in one batch (faster than looping over tapers but uses more memory)
280278
x_mt = rfft(x[..., np.newaxis, :] * dpss, n=n_fft, axis=-1)
281279
# Adjust DC and maybe Nyquist, depending on one-sided transform
282280
x_mt[..., 0] /= np.sqrt(2.0)

0 commit comments

Comments
 (0)