Skip to content

Commit

Permalink
Merge branch 'master' into update_petsurfer
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Sep 11, 2023
2 parents 779a4af + 661dd1d commit fd0c566
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Codespell
uses: codespell-project/actions-codespell@v2
2 changes: 1 addition & 1 deletion .github/workflows/contrib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
CI_SKIP_TEST: 1

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
CI_SKIP_TEST: 1

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down
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 fd0c566

Please sign in to comment.