File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,8 @@ def _run_interface(self, runtime):
125
125
self ._results ["out_files" ] = []
126
126
for i , img_3d in enumerate (nb .four_to_three (img )):
127
127
out_file = str (
128
- Path (fname_presuffix (in_file , suffix = f"_idx-{ i :03} " )).absolute ()
128
+ Path (fname_presuffix (in_file , suffix = f"_idx-{ i :03} " ,
129
+ newpath = runtime .cwd )).absolute ()
129
130
)
130
131
img_3d .to_filename (out_file )
131
132
self ._results ["out_files" ].append (out_file )
@@ -169,7 +170,8 @@ def _run_interface(self, runtime):
169
170
)
170
171
171
172
img_4d = nb .concat_images (nii_list )
172
- out_file = fname_presuffix (self .inputs .in_files [0 ], suffix = "_merged" )
173
+ out_file = fname_presuffix (self .inputs .in_files [0 ], suffix = "_merged" ,
174
+ newpath = runtime .cwd )
173
175
img_4d .to_filename (out_file )
174
176
175
177
self ._results ["out_file" ] = out_file
You can’t perform that action at this time.
0 commit comments