File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -497,20 +497,24 @@ def _list_outputs(self):
497
497
outputs ['normalized_files' ] = self .inputs .apply_to_files
498
498
outputs ['normalized_source' ] = self .inputs .source
499
499
elif 'write' in self .inputs .jobtype :
500
+ if isdefined (self .inputs .write_preserve ) and self .inputs .write_preserve :
501
+ prefixNorm = '' .join (['m' , self .inputs .out_prefix ])
502
+ else :
503
+ prefixNorm = self .inputs .out_prefix
500
504
outputs ['normalized_files' ] = []
501
505
if isdefined (self .inputs .apply_to_files ):
502
506
filelist = filename_to_list (self .inputs .apply_to_files )
503
507
for f in filelist :
504
508
if isinstance (f , list ):
505
- run = [fname_presuffix (in_f , prefix = self . inputs . out_prefix ) for in_f in f ]
509
+ run = [fname_presuffix (in_f , prefix = prefixNorm ) for in_f in f ]
506
510
else :
507
- run = [fname_presuffix (f , prefix = self . inputs . out_prefix )]
511
+ run = [fname_presuffix (f , prefix = prefixNorm )]
508
512
outputs ['normalized_files' ].extend (run )
509
513
if isdefined (self .inputs .source ):
510
514
outputs ['normalized_source' ] = []
511
515
for imgf in filename_to_list (self .inputs .source ):
512
516
outputs ['normalized_source' ].append (fname_presuffix (imgf ,
513
- prefix = self . inputs . out_prefix ))
517
+ prefix = prefixNorm ))
514
518
515
519
return outputs
516
520
You can’t perform that action at this time.
0 commit comments