Skip to content

Commit

Permalink
replace plot_psd() with compute_psd().plot()
Browse files Browse the repository at this point in the history
  • Loading branch information
drammock committed Mar 22, 2023
1 parent 3b03fb6 commit 909214e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/source/v1.2.md.inc
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@

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

- Replace legacy `plot_psd()` calls with `compute_psd().plot()`
(#725 by @drammock)
4 changes: 2 additions & 2 deletions mne_bids_pipeline/steps/preprocessing/_03_frequency_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def filter_data(
if exec_params.interactive:
# Plot raw data and power spectral density.
raw.plot(n_channels=50, butterfly=True)
raw.plot_psd(fmax=fmax)
raw.compute_psd(fmax=fmax).plot()

del raw

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

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

Expand Down

0 comments on commit 909214e

Please sign in to comment.