Skip to content

Commit e6e3da1

Browse files
committed
fix: correctly check for nrrd
1 parent 4bea9be commit e6e3da1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nipype/interfaces/dcm2nii.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,11 +431,11 @@ def _parse_stdout(self, stdout):
431431

432432
def _parse_files(self, filenames):
433433
outfiles, bvals, bvecs, bids = [], [], [], []
434-
outtypes = [".gz", ".bval", ".bvec", ".json", ".txt"]
435-
if self.to_nrrd:
436-
outtypes += [".nrrd", ".nhdr"]
434+
outtypes = [".bval", ".bvec", ".json", ".txt"]
435+
if self.inputs.to_nrrd:
436+
outtypes += [".nrrd", ".nhdr", ".raw.gz"]
437437
else:
438-
outtypes += [".nii"]
438+
outtypes += [".nii", ".nii.gz"]
439439

440440
for filename in filenames:
441441
# search for relevant files, and sort accordingly

0 commit comments

Comments
 (0)