Hello,
The method compute_psd() is not working when following this tutorial:
https://mne.tools/stable/auto_tutorials/time-freq/10_spectrum_class.html
I get the error: AttributeError: 'Raw' object has no attribute 'compute_psd'
As a positive control, I tried raw.plot_psd(), and that worked fine.
Can you please advise? Many thanks!
mne.datasets.sample.data_path()
sample_data_folder = mne.datasets.sample.data_path()
sample_data_raw_file = (sample_data_folder / 'MEG' / 'sample' /
'sample_audvis_raw.fif')
raw = mne.io.read_raw_fif(sample_data_raw_file, verbose=False).crop(tmax=60)
raw.plot_psd()
raw.compute_psd()
Platform: macOS-12.4-arm64-i386-64bit
Python: 3.10.6 | packaged by conda-forge | (main, Aug 22 2022, 20:41:22) [Clang 13.0.1 ]
mne: 1.1.1