Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ Contents
json
pickles
msgpacks
vlen
release

Acknowledgments
Expand Down
15 changes: 12 additions & 3 deletions docs/release.rst
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
Release notes
=============

.. _release_0.4.1:
.. _release_0.5.0:

0.5.0
-----

* Added new codecs for encoding arrays with variable-length unicode strings
(:class:`numcodecs.vlen.VLenUTF8`), variable-length byte strings
(:class:`numcodecs.vlen.VLenBytes`) and variable-length numerical arrays
((:class:`numcodecs.vlen.VLenArray`) (:issue:`56`).

.. _release_0.4.1:

0.4.1
-----

* Resolved an issue where providing an array with dtype ``object`` as the destination
when decoding could cause segaults with some codecs.
when decoding could cause segaults with some codecs (:issue:`55`).

.. _release_0.4.0:

0.4.0
-----

* Added a new :class:`numcodecs.json.JSON` codec as an alternative for encoding of
object arrays.
object arrays (:issue:`54`).

.. _release_0.3.1:

Expand Down
35 changes: 35 additions & 0 deletions docs/vlen.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Codecs for variable-length objects
==================================
.. automodule:: numcodecs.vlen

VLenUTF8
--------
.. autoclass:: VLenUTF8

.. autoattribute:: codec_id
.. automethod:: encode
.. automethod:: decode
.. automethod:: get_config
.. automethod:: from_config


VLenBytes
---------
.. autoclass:: VLenBytes

.. autoattribute:: codec_id
.. automethod:: encode
.. automethod:: decode
.. automethod:: get_config
.. automethod:: from_config


VLenArray
---------
.. autoclass:: VLenArray

.. autoattribute:: codec_id
.. automethod:: encode
.. automethod:: decode
.. automethod:: get_config
.. automethod:: from_config
Binary file added fixture/vlen-array/array.00.npy
Binary file not shown.
Binary file added fixture/vlen-array/array.01.npy
Binary file not shown.
4 changes: 4 additions & 0 deletions fixture/vlen-array/codec.00/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"dtype": "|i1",
"id": "vlen-array"
}
Binary file added fixture/vlen-array/codec.00/encoded.00.dat
Binary file not shown.
Binary file added fixture/vlen-array/codec.00/encoded.01.dat
Binary file not shown.
4 changes: 4 additions & 0 deletions fixture/vlen-array/codec.01/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"dtype": "<i2",
"id": "vlen-array"
}
Binary file added fixture/vlen-array/codec.01/encoded.00.dat
Binary file not shown.
Binary file added fixture/vlen-array/codec.01/encoded.01.dat
Binary file not shown.
4 changes: 4 additions & 0 deletions fixture/vlen-array/codec.02/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"dtype": "<i4",
"id": "vlen-array"
}
Binary file added fixture/vlen-array/codec.02/encoded.00.dat
Binary file not shown.
Binary file added fixture/vlen-array/codec.02/encoded.01.dat
Binary file not shown.
4 changes: 4 additions & 0 deletions fixture/vlen-array/codec.03/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"dtype": "<i8",
"id": "vlen-array"
}
Binary file added fixture/vlen-array/codec.03/encoded.00.dat
Binary file not shown.
Binary file added fixture/vlen-array/codec.03/encoded.01.dat
Binary file not shown.
4 changes: 4 additions & 0 deletions fixture/vlen-array/codec.04/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"dtype": "|u1",
"id": "vlen-array"
}
Binary file added fixture/vlen-array/codec.04/encoded.00.dat
Binary file not shown.
Binary file added fixture/vlen-array/codec.04/encoded.01.dat
Binary file not shown.
4 changes: 4 additions & 0 deletions fixture/vlen-array/codec.05/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"dtype": "<u2",
"id": "vlen-array"
}
Binary file added fixture/vlen-array/codec.05/encoded.00.dat
Binary file not shown.
Binary file added fixture/vlen-array/codec.05/encoded.01.dat
Binary file not shown.
4 changes: 4 additions & 0 deletions fixture/vlen-array/codec.06/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"dtype": "<u4",
"id": "vlen-array"
}
Binary file added fixture/vlen-array/codec.06/encoded.00.dat
Binary file not shown.
Binary file added fixture/vlen-array/codec.06/encoded.01.dat
Binary file not shown.
4 changes: 4 additions & 0 deletions fixture/vlen-array/codec.07/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"dtype": "<u8",
"id": "vlen-array"
}
Binary file added fixture/vlen-array/codec.07/encoded.00.dat
Binary file not shown.
Binary file added fixture/vlen-array/codec.07/encoded.01.dat
Binary file not shown.
Binary file added fixture/vlen-bytes/array.00.npy
Binary file not shown.
Binary file added fixture/vlen-bytes/array.01.npy
Binary file not shown.
Binary file added fixture/vlen-bytes/array.02.npy
Binary file not shown.
Binary file added fixture/vlen-bytes/array.03.npy
Binary file not shown.
3 changes: 3 additions & 0 deletions fixture/vlen-bytes/codec.00/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"id": "vlen-bytes"
}
Binary file added fixture/vlen-bytes/codec.00/encoded.00.dat
Binary file not shown.
Binary file added fixture/vlen-bytes/codec.00/encoded.01.dat
Binary file not shown.
Binary file added fixture/vlen-bytes/codec.00/encoded.02.dat
Binary file not shown.
Binary file added fixture/vlen-bytes/codec.00/encoded.03.dat
Binary file not shown.
Binary file added fixture/vlen-utf8/array.00.npy
Binary file not shown.
Binary file added fixture/vlen-utf8/array.01.npy
Binary file not shown.
Binary file added fixture/vlen-utf8/array.02.npy
Binary file not shown.
Binary file added fixture/vlen-utf8/array.03.npy
Binary file not shown.
3 changes: 3 additions & 0 deletions fixture/vlen-utf8/codec.00/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"id": "vlen-utf8"
}
Binary file added fixture/vlen-utf8/codec.00/encoded.00.dat
Binary file not shown.
Binary file added fixture/vlen-utf8/codec.00/encoded.01.dat
Binary file not shown.
Binary file added fixture/vlen-utf8/codec.00/encoded.02.dat
Binary file not shown.
Binary file added fixture/vlen-utf8/codec.00/encoded.03.dat
Binary file not shown.
Loading