Skip to content

Commit 59c8343

Browse files
authored
replace plot_psd() with compute_psd().plot() (#725)
1 parent 3b03fb6 commit 59c8343

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/source/v1.2.md.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@
1414

1515
[//]: # (### :bug: Bug fixes)
1616

17+
- Replace legacy `plot_psd()` calls with `compute_psd().plot()`
18+
(#725 by @drammock)

mne_bids_pipeline/steps/preprocessing/_03_frequency_filter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def filter_data(
218218
if exec_params.interactive:
219219
# Plot raw data and power spectral density.
220220
raw.plot(n_channels=50, butterfly=True)
221-
raw.plot_psd(fmax=fmax)
221+
raw.compute_psd(fmax=fmax).plot()
222222

223223
del raw
224224

@@ -302,7 +302,7 @@ def filter_data(
302302
if exec_params.interactive:
303303
# Plot raw data and power spectral density.
304304
raw_noise.plot(n_channels=50, butterfly=True)
305-
raw_noise.plot_psd(fmax=fmax)
305+
raw_noise.compute_psd(fmax=fmax).plot()
306306

307307
assert len(in_files) == 0, in_files.keys()
308308

0 commit comments

Comments
 (0)