Skip to content

Commit 3ba3172

Browse files
committed
Merge pull request #1137 from dmwelch/patch-1
BUG: AFNI extentions duplicate '.' in HEAD file
2 parents af5e6e2 + 3e0f976 commit 3ba3172

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/utils/filemanip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ def copyfile(originalfile, newfile, copy=False, create_new=False,
257257
copyfile(matofile, matnfile, copy)
258258
copyfile(hdrofile, hdrnfile, copy)
259259
elif originalfile.endswith(".BRIK"):
260-
hdrofile = originalfile[:-4] + ".HEAD"
261-
hdrnfile = newfile[:-4] + ".HEAD"
260+
hdrofile = originalfile[:-5] + ".HEAD"
261+
hdrnfile = newfile[:-5] + ".HEAD"
262262
copyfile(hdrofile, hdrnfile, copy)
263263

264264
return newfile

0 commit comments

Comments
 (0)