Skip to content

Commit

Permalink
FIX - path was one folder up for the template file
Browse files Browse the repository at this point in the history
  • Loading branch information
jstout211 committed Mar 29, 2024
1 parent ecbb970 commit 9635fe4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nih2mne/make_meg_bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from mne_bids import write_anat, BIDSPath, write_raw_bids
from nih2mne.calc_mnetrans import write_mne_fiducials
from nih2mne.calc_mnetrans import write_mne_trans

import nih2mne
from nih2mne.utilities.clear_mrk_path import (calc_extra_mark_filelist,
remove_extra_mrk_files,
clean_filepath_header)
Expand Down Expand Up @@ -146,7 +146,8 @@ def _check_markerfile(ds_fname):
'''
mrk_fname = op.join(ds_fname, 'MarkerFile.mrk')
if not op.exists(mrk_fname):
mrk_template = op.join(__file__, 'templates', 'MarkerFile.mrk')

mrk_template = op.join(nih2mne.__path__[0], 'templates', 'MarkerFile.mrk')
import shutil
shutil.copy(mrk_template, mrk_fname)

Expand Down

0 comments on commit 9635fe4

Please sign in to comment.