Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 661dd1d

Browse files
Merge pull request #3600 from servoz/master
Use out_prefix instead of "w" in spm.Normalize12
2 parents 327e0b9 + b9cac5e commit 661dd1d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎nipype/interfaces/spm/preprocess.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,13 +1491,16 @@ def _list_outputs(self):
14911491
filelist = ensure_list(self.inputs.apply_to_files)
14921492
for f in filelist:
14931493
if isinstance(f, list):
1494-
run = [fname_presuffix(in_f, prefix="w") for in_f in f]
1494+
run = [
1495+
fname_presuffix(in_f, prefix=self.inputs.out_prefix)
1496+
for in_f in f
1497+
]
14951498
else:
1496-
run = [fname_presuffix(f, prefix="w")]
1499+
run = [fname_presuffix(f, prefix=self.inputs.out_prefix)]
14971500
outputs["normalized_files"].extend(run)
14981501
if isdefined(self.inputs.image_to_align):
14991502
outputs["normalized_image"] = fname_presuffix(
1500-
self.inputs.image_to_align, prefix="w"
1503+
self.inputs.image_to_align, prefix=self.inputs.out_prefix
15011504
)
15021505

15031506
return outputs

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /