Skip to content

Commit 67eb65e

Browse files
author
Chris Gorgolewski
committed
fixed spacing
1 parent dbf2a8d commit 67eb65e

File tree

1 file changed

+4
-28
lines changed

1 file changed

+4
-28
lines changed

nibabel/tests/test_volumeutils.py

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,32 +1076,17 @@ def test_shape_zoom_affine():
10761076
zooms = (3, 2, 1)
10771077
res = shape_zoom_affine(shape, zooms)
10781078
exp = np.array(
1079-
[
1080-
[-3.0, 0.0, 0.0, 3.0],
1081-
[0.0, 2.0, 0.0, -4.0],
1082-
[0.0, 0.0, 1.0, -3.0],
1083-
[0.0, 0.0, 0.0, 1.0],
1084-
]
1079+
[[-3.0, 0.0, 0.0, 3.0], [0.0, 2.0, 0.0, -4.0], [0.0, 0.0, 1.0, -3.0], [0.0, 0.0, 0.0, 1.0],]
10851080
)
10861081
assert_array_almost_equal(res, exp)
10871082
res = shape_zoom_affine((3, 5), (3, 2))
10881083
exp = np.array(
1089-
[
1090-
[-3.0, 0.0, 0.0, 3.0],
1091-
[0.0, 2.0, 0.0, -4.0],
1092-
[0.0, 0.0, 1.0, -0.0],
1093-
[0.0, 0.0, 0.0, 1.0],
1094-
]
1084+
[[-3.0, 0.0, 0.0, 3.0], [0.0, 2.0, 0.0, -4.0], [0.0, 0.0, 1.0, -0.0], [0.0, 0.0, 0.0, 1.0],]
10951085
)
10961086
assert_array_almost_equal(res, exp)
10971087
res = shape_zoom_affine(shape, zooms, False)
10981088
exp = np.array(
1099-
[
1100-
[3.0, 0.0, 0.0, -3.0],
1101-
[0.0, 2.0, 0.0, -4.0],
1102-
[0.0, 0.0, 1.0, -3.0],
1103-
[0.0, 0.0, 0.0, 1.0],
1104-
]
1089+
[[3.0, 0.0, 0.0, -3.0], [0.0, 2.0, 0.0, -4.0], [0.0, 0.0, 1.0, -3.0], [0.0, 0.0, 0.0, 1.0],]
11051090
)
11061091
assert_array_almost_equal(res, exp)
11071092

@@ -1179,16 +1164,7 @@ def assert_rt(
11791164
if have_nans and nan_fill is None and not out_dtype.type == "f":
11801165
raise ValueError("Cannot handle this case")
11811166
_write_data(
1182-
to_write,
1183-
sio,
1184-
out_dtype,
1185-
order,
1186-
in_cast,
1187-
pre_clips,
1188-
inter,
1189-
slope,
1190-
post_clips,
1191-
nan_fill,
1167+
to_write, sio, out_dtype, order, in_cast, pre_clips, inter, slope, post_clips, nan_fill,
11921168
)
11931169
arr = np.ndarray(shape, out_dtype, buffer=sio.getvalue(), order=order)
11941170
expected = to_write.copy()

0 commit comments

Comments
 (0)