Skip to content

Commit 10b9675

Browse files
authored
Merge pull request #1874 from himito/feature/fix_copyfiles
Estimated transform files in spm realign output directory for 4D files
2 parents a81d993 + f41abd9 commit 10b9675

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

nipype/utils/filemanip.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
related_filetype_sets = [
3333
('.hdr', '.img', '.mat'),
34+
('.nii', '.mat'),
3435
('.BRIK', '.HEAD'),
3536
]
3637

nipype/utils/tests/test_filemanip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def test_json():
324324
('/path/test.hdr', 3, ['/path/test.hdr', '/path/test.img', '/path/test.mat']),
325325
('/path/test.BRIK', 2, ['/path/test.BRIK', '/path/test.HEAD']),
326326
('/path/test.HEAD', 2, ['/path/test.BRIK', '/path/test.HEAD']),
327-
('/path/foo.nii', 1, [])
327+
('/path/foo.nii', 2, ['/path/foo.nii', '/path/foo.mat'])
328328
])
329329
def test_related_files(file, length, expected_files):
330330
related_files = get_related_files(file)

0 commit comments

Comments
 (0)