Skip to content

Commit

Permalink
Merge pull request #3600 from servoz/master
Browse files Browse the repository at this point in the history
Use out_prefix instead of "w" in spm.Normalize12
  • Loading branch information
effigies committed Sep 11, 2023
2 parents 327e0b9 + b9cac5e commit 661dd1d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions nipype/interfaces/spm/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -1491,13 +1491,16 @@ def _list_outputs(self):
filelist = ensure_list(self.inputs.apply_to_files)
for f in filelist:
if isinstance(f, list):
run = [fname_presuffix(in_f, prefix="w") for in_f in f]
run = [
fname_presuffix(in_f, prefix=self.inputs.out_prefix)
for in_f in f
]
else:
run = [fname_presuffix(f, prefix="w")]
run = [fname_presuffix(f, prefix=self.inputs.out_prefix)]
outputs["normalized_files"].extend(run)
if isdefined(self.inputs.image_to_align):
outputs["normalized_image"] = fname_presuffix(
self.inputs.image_to_align, prefix="w"
self.inputs.image_to_align, prefix=self.inputs.out_prefix
)

return outputs
Expand Down

0 comments on commit 661dd1d

Please sign in to comment.