Skip to content

Commit c907b45

Browse files
authored
Merge branch 'master' into update-data-per-streamline
2 parents e3ffb71 + 0e925ab commit c907b45

28 files changed

+275
-135
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
groups:
8+
actions-infrastructure:
9+
patterns:
10+
- "actions/*"

.github/workflows/test.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- uses: actions/checkout@v4
4545
with:
4646
fetch-depth: 0
47-
- uses: actions/setup-python@v4
47+
- uses: actions/setup-python@v5
4848
with:
4949
python-version: 3
5050
- run: pip install --upgrade build twine
@@ -54,12 +54,12 @@ jobs:
5454
- name: Build git archive
5555
run: mkdir archive && git archive -v -o archive/nibabel-archive.tgz HEAD
5656
- name: Upload sdist and wheel artifacts
57-
uses: actions/upload-artifact@v3
57+
uses: actions/upload-artifact@v4
5858
with:
5959
name: dist
6060
path: dist/
6161
- name: Upload git archive artifact
62-
uses: actions/upload-artifact@v3
62+
uses: actions/upload-artifact@v4
6363
with:
6464
name: archive
6565
path: archive/
@@ -73,17 +73,17 @@ jobs:
7373
steps:
7474
- name: Download sdist and wheel artifacts
7575
if: matrix.package != 'archive'
76-
uses: actions/download-artifact@v3
76+
uses: actions/download-artifact@v4
7777
with:
7878
name: dist
7979
path: dist/
8080
- name: Download git archive artifact
8181
if: matrix.package == 'archive'
82-
uses: actions/download-artifact@v3
82+
uses: actions/download-artifact@v4
8383
with:
8484
name: archive
8585
path: archive/
86-
- uses: actions/setup-python@v4
86+
- uses: actions/setup-python@v5
8787
with:
8888
python-version: 3
8989
- name: Display Python version
@@ -147,7 +147,7 @@ jobs:
147147
submodules: recursive
148148
fetch-depth: 0
149149
- name: Set up Python ${{ matrix.python-version }}
150-
uses: actions/setup-python@v4
150+
uses: actions/setup-python@v5
151151
with:
152152
python-version: ${{ matrix.python-version }}
153153
architecture: ${{ matrix.architecture }}
@@ -162,14 +162,15 @@ jobs:
162162
run: tox c
163163
- name: Run tox
164164
run: tox -v --exit-and-dump-after 1200
165-
- uses: codecov/codecov-action@v3
165+
- uses: codecov/codecov-action@v4
166166
if: ${{ always() }}
167167
with:
168168
files: cov.xml
169+
token: ${{ secrets.CODECOV_TOKEN }}
169170
- name: Upload pytest test results
170-
uses: actions/upload-artifact@v3
171+
uses: actions/upload-artifact@v4
171172
with:
172-
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
173+
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.dependencies }}-${{ matrix.architecture }}
173174
path: test-results.xml
174175
if: ${{ always() }}
175176

@@ -183,7 +184,7 @@ jobs:
183184
steps:
184185
- uses: actions/checkout@v4
185186
- name: Set up Python ${{ matrix.python-version }}
186-
uses: actions/setup-python@v4
187+
uses: actions/setup-python@v5
187188
with:
188189
python-version: 3
189190
- name: Display Python version
@@ -204,7 +205,7 @@ jobs:
204205
id-token: write
205206
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
206207
steps:
207-
- uses: actions/download-artifact@v3
208+
- uses: actions/download-artifact@v4
208209
with:
209210
name: dist
210211
path: dist/

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@
1919
[submodule "nibabel-data/nitest-dicom"]
2020
path = nibabel-data/nitest-dicom
2121
url = https://github.com/effigies/nitest-dicom
22+
[submodule "nibabel-data/dcm_qa_xa30"]
23+
path = nibabel-data/dcm_qa_xa30
24+
url = https://github.com/neurolabusc/dcm_qa_xa30.git

.zenodo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@
270270
"orcid": "0000-0003-1076-5122"
271271
},
272272
{
273-
"affiliation": "Universit\u00e9 de Sherbrooke",
273+
"affiliation": "Brigham and Women's Hospital, Mass General Brigham/Harvard Medical School",
274274
"name": "Legarreta, Jon Haitz",
275275
"orcid": "0000-0002-9661-1396"
276276
},

Changelog

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,28 @@ Eric Larson (EL), Demian Wassermann, Stephan Gerhard and Ross Markello (RM).
2525

2626
References like "pr/298" refer to github pull request numbers.
2727

28+
5.2.1 (Monday 26 February 2024)
29+
===============================
30+
31+
Bug-fix release in the 5.2.x series.
32+
33+
Enhancements
34+
------------
35+
* Support "flat" ASCII-encoded GIFTI DataArrays (pr/1298) (PM, reviewed by CM)
36+
37+
Bug fixes
38+
---------
39+
* Tolerate missing ``git`` when reporting version info (pr/1286) (CM, reviewed by
40+
Yuri Victorovich)
41+
* Handle Siemens XA30 derived DWI DICOMs (pr/1296) (CM, reviewed by YOH and
42+
Mathias Goncalves)
43+
44+
Maintenance
45+
-----------
46+
* Add tool for generating GitHub-friendly release notes (pr/1284) (CM)
47+
* Accommodate pytest 8 changes (pr/1297) (CM)
48+
49+
2850
5.2.0 (Monday 11 December 2023)
2951
===============================
3052

nibabel-data/dcm_qa_xa30

Submodule dcm_qa_xa30 added at 89b2509

nibabel/_compression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from .optpkg import optional_package
1818

1919
if ty.TYPE_CHECKING: # pragma: no cover
20-
import indexed_gzip # type: ignore[import-not-found]
20+
import indexed_gzip # type: ignore[import]
2121
import pyzstd
2222

2323
HAVE_INDEXED_GZIP = True

nibabel/affines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def rescale_affine(affine, shape, zooms, new_shape=None):
365365
A new affine transform with the specified voxel sizes
366366
367367
"""
368-
shape = np.array(shape, copy=False)
368+
shape = np.asarray(shape)
369369
new_shape = np.array(new_shape if new_shape is not None else shape)
370370

371371
s = voxel_sizes(affine)

nibabel/benchmarks/bench_arrayproxy_slicing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
# if memory_profiler is installed, we get memory usage results
2828
try:
29-
from memory_profiler import memory_usage # type: ignore[import-not-found]
29+
from memory_profiler import memory_usage # type: ignore[import]
3030
except ImportError:
3131
memory_usage = None
3232

nibabel/casting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ def int_abs(arr):
611611
>>> int_abs(np.array([-128, 127], dtype=np.float32))
612612
array([128., 127.], dtype=float32)
613613
"""
614-
arr = np.array(arr, copy=False)
614+
arr = np.asarray(arr)
615615
dt = arr.dtype
616616
if dt.kind == 'u':
617617
return arr

0 commit comments

Comments
 (0)