Skip to content

Commit 7a680e2

Browse files
committed
fix categorize warnings
1 parent 3865229 commit 7a680e2

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

zarr/tests/test_core.py

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,24 +1027,11 @@ def test_object_arrays_danger(self):
10271027
z[:] = 42
10281028

10291029
# do something else dangerous
1030-
labels = [
1031-
'¡Hola mundo!',
1032-
'Hej Världen!',
1033-
'Servus Woid!',
1034-
'Hei maailma!',
1035-
'Xin chào thế giới',
1036-
'Njatjeta Botë!',
1037-
'Γεια σου κόσμε!',
1038-
'こんにちは世界',
1039-
'世界,你好!',
1040-
'Helló, világ!',
1041-
'Zdravo svete!',
1042-
'เฮลโลเวิลด์'
1043-
]
1044-
data = labels * 10
1030+
data = greetings * 10
10451031
for compressor in Zlib(1), Blosc():
10461032
z = self.create_array(shape=len(data), chunks=30, dtype=object,
1047-
object_codec=Categorize(labels, dtype=object),
1033+
object_codec=Categorize(greetings,
1034+
dtype=object),
10481035
compressor=compressor)
10491036
z[:] = data
10501037
v = z.view(filters=[])

0 commit comments

Comments
 (0)