Skip to content

Commit 9d278a2

Browse files
DimitriPapadopouloseffigies
authored andcommitted
STY: Apply ruff/pyupgrade rule (UP027)
UP027 Replace unpacked list comprehension with a generator expression
1 parent 830b4fc commit 9d278a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

niworkflows/interfaces/tests/test_cifti.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def test__create_cifti_image(tmp_path):
7979
cifti_file = _create_cifti_image(bold_file, volume_label, dummy_fnames, dummy_fnames, 2.0)
8080

8181
cimg = nb.load(cifti_file)
82-
series, bm = [cimg.header.get_axis(i) for i in (0, 1)]
82+
series, bm = (cimg.header.get_axis(i) for i in (0, 1))
8383
assert len(series) == 1 # Time
8484
assert len(bm) == 8 # Voxel
8585

0 commit comments

Comments
 (0)