8000 MAINT: fix indentation and whitespaces of the flip function · numpy/numpy@1dd7108 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1dd7108

Browse files
committed
MAINT: fix indentation and whitespaces of the flip function
1 parent 7c76ef7 commit 1dd7108

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

numpy/lib/tests/test_function_base.py

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def test_rotation_axes(self):
9898

9999

100100
class TestFlip(TestCase):
101+
101102
def test_axes(self):
102103
self.assertRaises(ValueError, np.flip, np.ones(4), axis=1)
103104
self.assertRaises(ValueError, np.flip, np.ones((4, 4)), axis=2)
@@ -126,13 +127,11 @@ def test_basic_ud(self):
126127
def test_3d_swap_axis0(self):
127128
a = np.array([[[0, 1],
128129
[2, 3]],
129-
130130
[[4, 5],
131131
[6, 7]]])
132132

133133
b = np.array([[[4, 5],
134134
[6, 7]],
135-
136135
[[0, 1],
137136
[2, 3]]])
138137

@@ -141,30 +140,26 @@ def test_3d_swap_axis0(self):
141140
def test_3d_swap_axis1(self):
142141
a = np.array([[[0, 1],
143142
[2, 3]],
144-
145143
[[4, 5],
146144
[6, 7]]])
147145

148146
b = np.array([[[2, 3],
149147
[0, 1]],
150-
151148
[[6, 7],
152149
[4, 5]]])
153150

154151
assert_equal(np.flip(a, 1), b)
155152

156153
def test_3d_swap_axis2(self):
157154
a = np.array([[[0, 1],
158-
[2, 3]],
159-
160-
[[4, 5],
161-
[6, 7]]])
155+
[2, 3]],
156+
[[4, 5],
157+
[6, 7]]])
162158

163159
b = np.array([[[1, 0],
164-
[3, 2]],
165-
166-
[[5, 4],
167-
[7, 6]]])
160+
[3, 2]],
161+
[[5, 4],
162+
[7, 6]]])
168163

169164
assert_equal(np.flip(a, 2), b)
170165

0 commit comments

Comments
 (0)
0