Skip to content

Commit 0f2d69d

Browse files
committed
Merge remote-tracking branch 'upstream/master' into origin/fix/dcm2niix_crop
2 parents c19143e + f1a8909 commit 0f2d69d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+196
-82
lines changed

.codespellrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ skip = .git,*.pdf,*.svg,external
99
# Reson - short journal name
1010
# ALS, FWE - neuroimaging specific abbrevs
1111
# Comision - foreign word used
12-
ignore-words-list = te,inport,objekt,jist,nd,hel,inout,fith,whos,fot,ue,shs,smal,nam,filetest,suh,noo,reson,als,fwe,crasher,comision,afile
12+
# expad - AFNI flag
13+
ignore-words-list = te,inport,objekt,jist,nd,hel,inout,fith,whos,fot,ue,shs,smal,nam,filetest,suh,noo,reson,als,fwe,crasher,comision,afile,expad

.git-blame-ignore-revs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# Tue Feb 27 14:28:18 2024 -0500 - [email protected] - STY: black 2024.2 [ignore-rev]
2+
f1cbc1c941f8d02659f8ef245aac0862efb80ccf
3+
# Mon Sep 11 13:36:40 2023 +0200 - [email protected] - run black for nipype/interfaces/spm/preprocess.py
4+
b9cac5e993143febb01ade42e56b41009427a4b6
5+
# Wed Jul 5 16:31:45 2023 -0400 - [email protected] - STY: Run black and fix typo
6+
34a4ac6eeff8d4924b40875c45df5d84a97da90b
7+
# Wed Jul 5 11:30:42 2023 -0400 - [email protected] - STY: black
8+
3b89ca85faf2428ecf7844de9c0db4aa7c329c93
9+
# Wed Jul 5 09:49:31 2023 -0400 - [email protected] - STY: black
10+
4a6a7d9d25d5d1e1f0eb55828dede58f8b9c9f80
111
# Wed Apr 5 14:01:05 2023 -0400 - [email protected] - STY: black [ignore-rev]
212
a9ce9b78a402ebacf7726ad6454bb75b1447f52f
313
# Wed Sep 14 14:12:07 2022 -0400 - [email protected] - STY: Black

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ updates:
55
directory: "/"
66
schedule:
77
interval: "weekly"
8+
groups:
9+
actions-infrastructure:
10+
patterns:
11+
- "actions/*"

.github/workflows/contrib.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
submodules: recursive
5151
fetch-depth: 0
5252
- name: Set up Python ${{ matrix.python-version }}
53-
uses: actions/setup-python@v4
53+
uses: actions/setup-python@v5
5454
with:
5555
python-version: ${{ matrix.python-version }}
5656
- name: Display Python version
@@ -71,12 +71,13 @@ jobs:
7171
- name: Run tests
7272
run: tools/ci/check.sh
7373
if: ${{ matrix.check != 'skiptests' }}
74-
- uses: codecov/codecov-action@v3
74+
- uses: codecov/codecov-action@v4
7575
with:
7676
file: coverage.xml
77+
token: ${{ secrets.CODECOV_TOKEN }}
7778
if: ${{ always() }}
7879
- name: Upload pytest test results
79-
uses: actions/upload-artifact@v3
80+
uses: actions/upload-artifact@v4
8081
with:
8182
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
8283
path: test-results.xml

.github/workflows/tests.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ jobs:
4040
- uses: actions/checkout@v4
4141
with:
4242
fetch-depth: 0
43-
- uses: actions/setup-python@v4
43+
- uses: actions/setup-python@v5
4444
with:
4545
python-version: 3
4646
- run: pip install --upgrade build twine
4747
- name: Build sdist and wheel
4848
run: python -m build
4949
- run: twine check dist/*
50-
- uses: actions/upload-artifact@v3
50+
- uses: actions/upload-artifact@v4
5151
with:
5252
name: dist
5353
path: dist/
@@ -59,11 +59,11 @@ jobs:
5959
matrix:
6060
package: ['wheel', 'sdist']
6161
steps:
62-
- uses: actions/download-artifact@v3
62+
- uses: actions/download-artifact@v4
6363
with:
6464
name: dist
6565
path: dist/
66-
- uses: actions/setup-python@v4
66+
- uses: actions/setup-python@v5
6767
with:
6868
python-version: 3
6969
- name: Display Python version
@@ -124,7 +124,7 @@ jobs:
124124
steps:
125125
- uses: actions/checkout@v4
126126
- name: Set up Python ${{ matrix.python-version }}
127-
uses: actions/setup-python@v4
127+
uses: actions/setup-python@v5
128128
with:
129129
python-version: ${{ matrix.python-version }}
130130
- name: Display Python version
@@ -145,14 +145,15 @@ jobs:
145145
- name: Run tests
146146
run: tools/ci/check.sh
147147
if: ${{ matrix.check != 'skiptests' }}
148-
- uses: codecov/codecov-action@v3
148+
- uses: codecov/codecov-action@v4
149149
with:
150150
file: coverage.xml
151+
token: ${{ secrets.CODECOV_TOKEN }}
151152
if: ${{ always() }}
152153
- name: Upload pytest test results
153-
uses: actions/upload-artifact@v3
154+
uses: actions/upload-artifact@v4
154155
with:
155-
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
156+
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.deb-depends }}
156157
path: test-results.xml
157158
if: ${{ always() && matrix.check == 'test' }}
158159

@@ -162,7 +163,7 @@ jobs:
162163
needs: [stable, test-package]
163164
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
164165
steps:
165-
- uses: actions/download-artifact@v3
166+
- uses: actions/download-artifact@v4
166167
with:
167168
name: dist
168169
path: dist/

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.4.0
5+
rev: v4.5.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
99
- id: check-yaml
1010
- id: check-added-large-files
1111
- repo: https://github.com/psf/black
12-
rev: 23.3.0
12+
rev: 24.2.0
1313
hooks:
1414
- id: black
1515
- repo: https://github.com/codespell-project/codespell
16-
rev: v2.2.5
16+
rev: v2.2.6
1717
hooks:
1818
- id: codespell

.zenodo.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,11 @@
911911
"name": "Wu, Jianxiao",
912912
"orcid": "0000-0002-4866-272X",
913913
},
914+
{
915+
"affiliation": "Lund University",
916+
"name": "Anijärv, Toomas Erik",
917+
"orcid": "0000-0002-3650-4230",
918+
},
914919
],
915920
"keywords": [
916921
"neuroimaging",

nipype/algorithms/modelgen.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,9 @@ def _generate_standard_design(
417417
sessinfo[i]["cond"][cid]["pmod"][j]["poly"] = info.pmod[
418418
cid
419419
].poly[j]
420-
sessinfo[i]["cond"][cid]["pmod"][j][
421-
"param"
422-
] = info.pmod[cid].param[j]
420+
sessinfo[i]["cond"][cid]["pmod"][j]["param"] = (
421+
info.pmod[cid].param[j]
422+
)
423423

424424
sessinfo[i]["regress"] = []
425425
if hasattr(info, "regressors") and info.regressors is not None:

nipype/algorithms/rapidart.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,9 @@ def _detect_outliers_core(self, imgfile, motionfile, runidx, cwd=None):
584584
if displacement is not None:
585585
dmap = np.zeros((x, y, z, timepoints), dtype=np.float64)
586586
for i in range(timepoints):
587-
dmap[
588-
voxel_coords[0], voxel_coords[1], voxel_coords[2], i
589-
] = displacement[i, :]
587+
dmap[voxel_coords[0], voxel_coords[1], voxel_coords[2], i] = (
588+
displacement[i, :]
589+
)
590590
dimg = Nifti1Image(dmap, affine)
591591
dimg.to_filename(displacementfile)
592592
else:

nipype/caching/memory.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Using nipype with persistence and lazy recomputation but without explicit
33
name-steps pipeline: getting back scope in command-line based programming.
44
"""
5+
56
import os
67
import hashlib
78
import pickle

0 commit comments

Comments
 (0)