Skip to content

Commit 78d77b7

Browse files
committed
FIX newer version of MNE output a PosixPath
1 parent 75f9596 commit 78d77b7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/plot_ecg_detection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
mne.set_log_level(verbose='CRITICAL')
2525
data_path = sample.data_path()
26-
raw_fname = data_path + '/MEG/sample/sample_audvis_filt-0-40_raw.fif'
26+
raw_fname = data_path / '/MEG/sample/sample_audvis_filt-0-40_raw.fif'
2727

2828
raw = mne.io.read_raw_fif(raw_fname, preload=True)
2929
raw.filter(1, None, fir_design='firwin') # already lowpassed @ 40

examples/plot_ica_eeg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
###############################################################################
3030
# Generate sample EEG data
3131
data_path = sample.data_path()
32-
raw_fname = data_path + '/MEG/sample/sample_audvis_filt-0-40_raw.fif'
32+
raw_fname = data_path / '/MEG/sample/sample_audvis_filt-0-40_raw.fif'
3333

3434
raw = mne.io.read_raw_fif(raw_fname, preload=True)
3535
raw.filter(1, 40, n_jobs=1) # 1Hz high pass is often helpful for fitting ICA

0 commit comments

Comments
 (0)