Running on current
mne-main, let’s summarize the code I’m using with:
raw = read_raw_fif(fname, preload=True)
epochs = make_fixed_length_epochs(raw, duration=4., overlap=0.)
spectrum = epochs.compute_psd(
method="multitaper", adaptive=True, verbose="INFO"
With some of my files, I’m greeted by the following warning:
RuntimeWarning: Iterative multi-taper PSD computation did not converge.
How bad is it? Can I disregard this warning?
It comes from
adaptive=True which calls
_psd_from_mt_adaptive has a
max_iter argument. Increasing it does suppress the warning… but it’s not exposed in the public API.
Note that it could also maybe impact
adaptive=True would also run
_psd_from_mt_adaptive without exposing the
max_iter argument in the public API.