Skip to content

Commit 5b582a1

Browse files
HamidMandidrammock
andauthored
The pathlib-style is changed on line 46-47 (#10849)
* The pathlib-style is changed on line 46-47 * Bugs ---- Update pathlib-style to handle file paths (:gh:`10814` by :newcontrib:`Hamid Mandi`) - ... * Some changes * flake8 tested * Apply suggestions from code review Co-authored-by: Daniel McCloy <dan@mccloy.info>
1 parent fdcfac7 commit 5b582a1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

examples/inverse/mne_cov_power.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
# %%
2626

27-
import os.path as op
2827
import numpy as np
2928

3029
import mne
@@ -43,8 +42,7 @@
4342
# First we compute an empty-room covariance, which captures noise from the
4443
# sensors and environment.
4544

46-
raw_empty_room_fname = op.join(
47-
data_path, 'MEG', 'sample', 'ernoise_raw.fif')
45+
raw_empty_room_fname = data_path / 'MEG' / 'sample' / 'ernoise_raw.fif'
4846
raw_empty_room = mne.io.read_raw_fif(raw_empty_room_fname)
4947
raw_empty_room.crop(0, 30) # cropped just for speed
5048
raw_empty_room.info['bads'] = ['MEG 2443']
@@ -111,7 +109,6 @@
111109
# Read the forward solution and compute the inverse operator
112110
fname_fwd = meg_path / 'sample_audvis-meg-oct-6-fwd.fif'
113111
fwd = mne.read_forward_solution(fname_fwd)
114-
115112
# make an MEG inverse operator
116113
info = evoked.info
117114
inverse_operator = make_inverse_operator(info, fwd, noise_cov,

0 commit comments

Comments
 (0)