Skip to content

Commit

Permalink
FIX - bidspath update was only done on .nii and not .nii.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
jstout211 committed Apr 22, 2024
1 parent 3d1e0ed commit f375c7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nih2mne/megcore_prep_mri_bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ def make_swarm(bids_root=None, src_type='surf', project=None,


def check_mri(t1_bids_path):
for acq in ['MPRAGE', None]:
for acq in ['MPRAGE', 'FSPGR', None]:
t1_bids_path.update(acquisition=acq, extension='.nii')
if op.exists(t1_bids_path.fpath):
break
t1_bids_path.update(extension='.nii.gz')
t1_bids_path.update(acquisition=acq, extension='.nii.gz')
if op.exists(t1_bids_path.fpath):
break
#Redundant test possibly
Expand Down

0 comments on commit f375c7b

Please sign in to comment.