diff --git a/numcodecs/vlen.c b/numcodecs/vlen.c index 6630aaf6..eae16d8a 100644 --- a/numcodecs/vlen.c +++ b/numcodecs/vlen.c @@ -2120,7 +2120,7 @@ static const char __pyx_k_Buffer_view_does_not_expose_stri[] = "Buffer view does static const char __pyx_k_Can_only_create_a_buffer_that_is[] = "Can only create a buffer that is contiguous in memory."; static const char __pyx_k_Empty_shape_tuple_for_cython_arr[] = "Empty shape tuple for cython.array"; static const char __pyx_k_Encode_variable_length_1_dimensi[] = "Encode variable-length 1-dimensional arrays via UTF-8.\n\n Examples\n --------\n >>> import numcodecs\n >>> import numpy as np\n >>> x = np.array([[1, 3, 5], [4], [7, 9]], dtype='object')\n >>> codec = numcodecs.VLenArray('>> codec.decode(codec.encode(x))\n array([array([1, 2, 3], dtype=int32), array([4], dtype=int32),\n array([5, 6], dtype=int32)], dtype=object)\n\n See Also\n --------\n numcodecs.pickles.Pickle, numcodecs.json.JSON, numcodecs.msgpacks.MsgPack\n\n Notes\n -----\n The binary data for each array are packed into a parquet-style byte array.\n\n "; -static const char __pyx_k_Encode_variable_length_byte_stri[] = "Encode variable-length byte string objects.\n\n Examples\n --------\n >>> import numcodecs\n >>> import numpy as np\n >>> x = np.array([b'foo', b'bar', b'baz'], dtype='object')\n >>> codec = numcodecs.VLenUTF8()\n >>> codec.decode(codec.encode(x))\n array([b'foo', b'bar', b'baz'], dtype=object)\n\n See Also\n --------\n numcodecs.pickles.Pickle\n\n Notes\n -----\n The bytes values for each string are packed into a parquet-style byte array.\n\n "; +static const char __pyx_k_Encode_variable_length_byte_stri[] = "Encode variable-length byte string objects.\n\n Examples\n --------\n >>> import numcodecs\n >>> import numpy as np\n >>> x = np.array([b'foo', b'bar', b'baz'], dtype='object')\n >>> codec = numcodecs.VLenBytes()\n >>> codec.decode(codec.encode(x))\n array([b'foo', b'bar', b'baz'], dtype=object)\n\n See Also\n --------\n numcodecs.pickles.Pickle\n\n Notes\n -----\n The bytes values for each string are packed into a parquet-style byte array.\n\n "; static const char __pyx_k_Encode_variable_length_unicode_s[] = "Encode variable-length unicode string objects via UTF-8.\n\n Examples\n --------\n >>> import numcodecs\n >>> import numpy as np\n >>> x = np.array(['foo', 'bar', 'baz'], dtype='object')\n >>> codec = numcodecs.VLenUTF8()\n >>> codec.decode(codec.encode(x))\n array(['foo', 'bar', 'baz'], dtype=object)\n\n See Also\n --------\n numcodecs.pickles.Pickle, numcodecs.json.JSON, numcodecs.msgpacks.MsgPack\n\n Notes\n -----\n The encoded bytes values for each string are packed into a parquet-style byte array.\n\n "; static const char __pyx_k_Incompatible_checksums_s_vs_0xb0[] = "Incompatible checksums (%s vs 0xb068931 = (name))"; static const char __pyx_k_Indirect_dimensions_not_supporte[] = "Indirect dimensions not supported"; diff --git a/numcodecs/vlen.pyx b/numcodecs/vlen.pyx index 5fe9b02d..eb34ecb0 100644 --- a/numcodecs/vlen.pyx +++ b/numcodecs/vlen.pyx @@ -184,7 +184,7 @@ class VLenBytes(Codec): >>> import numcodecs >>> import numpy as np >>> x = np.array([b'foo', b'bar', b'baz'], dtype='object') - >>> codec = numcodecs.VLenUTF8() + >>> codec = numcodecs.VLenBytes() >>> codec.decode(codec.encode(x)) array([b'foo', b'bar', b'baz'], dtype=object)