Skip to content

Commit

Permalink
STY: Apply ruff/pyupgrade rule (UP027)
Browse files Browse the repository at this point in the history
UP027 Replace unpacked list comprehension with a generator expression
  • Loading branch information
DimitriPapadopoulos authored and effigies committed Apr 17, 2024
1 parent 830b4fc commit 9d278a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion niworkflows/interfaces/tests/test_cifti.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def test__create_cifti_image(tmp_path):
cifti_file = _create_cifti_image(bold_file, volume_label, dummy_fnames, dummy_fnames, 2.0)

cimg = nb.load(cifti_file)
series, bm = [cimg.header.get_axis(i) for i in (0, 1)]
series, bm = (cimg.header.get_axis(i) for i in (0, 1))
assert len(series) == 1 # Time
assert len(bm) == 8 # Voxel

Expand Down

0 comments on commit 9d278a2

Please sign in to comment.