Skip to content

Commit 1d2f107

Browse files
committed
fix: assert all(...) instead of [...]
1 parent c53326c commit 1d2f107

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdcflows/workflows/fit/tests/test_syn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,10 @@ def test_mm2vox(tmp_path, fixed_ornt, moving_ornt, ijk, index):
304304

305305
vox_params = _mm2vox(str(moving_path), str(fixed_path), ijk, config)
306306
vox_values = [level[2] for level in vox_params]
307-
assert [
307+
assert all(
308308
mm_level[:2] == vox_level[:2]
309309
for mm_level, vox_level in zip(params, vox_params, strict=False)
310-
]
310+
)
311311
assert np.array_equal(vox_values, mm_values / [2, 3, 4][index])
312312

313313

0 commit comments

Comments
 (0)