Skip to content

Commit 10f84cf

Browse files
committed
fsl/utils.py: fix error from InvWarp generated filename
1 parent 5d442f1 commit 10f84cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/fsl/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,8 +1213,8 @@ class InvWarp(FSLCommand):
12131213

12141214
def _gen_filename(self, name):
12151215
if name == 'inverse_warp':
1216-
in_file1 = self.inputs.in_file1
1217-
return '%s_inv%s' % os.path.splitext(in_file1)
1216+
warp = self.inputs.warp
1217+
return '%s_inv%s' % os.path.splitext(warp)
12181218
else:
12191219
raise NotImplementedError
12201220

0 commit comments

Comments
 (0)