Skip to content

Commit 0780934

Browse files
committed
ruff formatting
1 parent 91e0c9a commit 0780934

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

numcodecs/tests/test_delta.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@
1515
# mix of orders: C, F
1616
# mix of encoding types: All available types for each arrays
1717
arrays = [
18-
(np.random.randint(0, 1, size=110, dtype='?').reshape(10, 11), ('?','<u1','<i1')),
19-
(np.arange(1000, dtype='<i4'), ('<i4','<i2','<u4','u2')),
18+
(np.random.randint(0, 1, size=110, dtype='?').reshape(10, 11), ('?', '<u1', '<i1')),
19+
(np.arange(1000, dtype='<i4'), ('<i4', '<i2', '<u4', 'u2')),
2020
(np.linspace(1000, 1001, 1000, dtype='<f4').reshape(100, 10), ('<f4',)),
2121
(np.random.normal(loc=1000, scale=1, size=(10, 10, 10)).astype('<f8'), ('<f8',)),
22-
(np.random.randint(0, 200, size=1000, dtype='u2').astype('<u2').reshape(100, 10, order='F'), ('<i2',)),
22+
(
23+
np.random.randint(0, 200, size=1000, dtype='u2').astype('<u2').reshape(100, 10, order='F'),
24+
('<i2',),
25+
),
2326
]
2427

28+
2529
def test_encode_decode():
2630
for arr, encoding_types in arrays:
2731
for astype in encoding_types:
@@ -50,7 +54,7 @@ def test_repr():
5054

5155

5256
def test_backwards_compatibility():
53-
for arr,_ in arrays:
57+
for arr, _ in arrays:
5458
codec = Delta(dtype=arr.dtype)
5559
check_backwards_compatibility(Delta.codec_id, [arr], [codec], prefix=str(arr.dtype))
5660

0 commit comments

Comments
 (0)