Skip to content

Commit

Permalink
Export as fif, rename to snirf.
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-luke committed May 8, 2020
1 parent 5eff75f commit 9da3c3e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mne_bids/write.py
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,10 @@ def write_raw_bids(raw, bids_basename, bids_root, events_data=None,
copyfile_kit(raw_fname, bids_fname, subject_id, session_id,
task, run, raw._init_kwargs)
elif ext == '.nirx':
_write_raw_fif(raw, bids_fname.replace(ext, '.fif'))
_write_raw_fif(raw, bids_fname.replace(ext, '_raw.fif'))
# This is a temporary hack until snirf io is implemented
os.rename(bids_fname.replace(ext, '_raw.fif'),
bids_fname.replace(ext, '.snirf'))
else:
sh.copyfile(raw_fname, bids_fname)

Expand Down

0 comments on commit 9da3c3e

Please sign in to comment.