There was an error while loading. Please reload this page.
1 parent 28d3bb3 commit ad38b09Copy full SHA for ad38b09
1 file changed
tests/test_utils.py
@@ -72,3 +72,9 @@ def test_reorder_axes_to_shape():
72
73
with pytest.raises(ValueError):
74
reorder_axes_to_shape(arr, (None, 256, 1024)) # Wildcard & wrong number
75
+
76
+ # Check we've transposed, not reshaped
77
+ arr = np.arange(15).reshape(3, 5)
78
+ res = reorder_axes_to_shape(arr, (5, 3))
79
+ assert res.shape == (5, 3)
80
+ np.testing.assert_array_equal(res[0], [0, 5, 10])
0 commit comments