Skip to content

Commit 814dc2c

Browse files
CedricCondayclaude
andcommitted
Fix codespell: Pre-empt -> Preempt in psd.py comment
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LyuFNWN45FNffpGwsC4Su7
1 parent cfaddd8 commit 814dc2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mne/time_frequency/psd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def psd_array_welch(
266266
# A good data span shorter than n_per_seg cannot hold a full-length Welch
267267
# window. SciPy clamps nperseg down to the span length internally but leaves
268268
# noverlap unchanged, then raises "noverlap must be less than nperseg"
269-
# (#13039). Pre-empt that here: analyze each short span with a window shrunk
269+
# (#13039). Preempt that here: analyze each short span with a window shrunk
270270
# to its own length and noverlap clamped below it. n_fft is left unchanged,
271271
# so every span is zero-padded to the same length and shares one frequency
272272
# grid; short spans simply get coarser spectral resolution. A per-span

0 commit comments

Comments
 (0)