Skip to content

Commit fc4196f

Browse files
authored
Merge pull request #77 from jeromekelleher/json-reshape
Included array shape in JSON encoding.
2 parents 6ecedcd + 6e8893e commit fc4196f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+21583
-23
lines changed

docs/release.rst

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
Release notes
22
=============
33

4-
* Updated the msgpack dependency (by :user:`Jerome Kelleher <jeromekelleher>`; :issue:`74`, :issue:`75`).
4+
.. _release_0.6.0:
5+
6+
0.6.0 (in development)
7+
----------------------
8+
9+
* The encoding format used by the :class:`JSON` and :class:`MsgPack` codecs has been
10+
changed to resolve an issue with correctly encoding and decoding some object arrays.
11+
Now the encoded data includes the original shape of the array, which enables the
12+
correct shape to be restored on decoding. The previous encoding format is still
13+
supported, so that any data encoded using a previous version of numcodecs can still be
14+
read. Thus no changes to user code and applications should be required, other
15+
than upgrading numcodecs. By :user:`Jerome Kelleher <jeromekelleher>`; :issue:`74`,
16+
:issue:`75`.
17+
18+
* Updated the msgpack dependency (by :user:`Jerome Kelleher <jeromekelleher>`;
19+
:issue:`74`, :issue:`75`).
520

621
.. _release_0.5.5:
722

fixture/json2/array.00.npy

2.05 KB
Binary file not shown.

fixture/json2/array.01.npy

4.1 KB
Binary file not shown.

fixture/json2/array.02.npy

4.09 KB
Binary file not shown.

fixture/json2/array.03.npy

3.98 KB
Binary file not shown.

fixture/json2/array.04.npy

10.6 KB
Binary file not shown.

fixture/json2/array.05.npy

2.08 KB
Binary file not shown.

fixture/json2/array.06.npy

79.8 KB
Binary file not shown.

fixture/json2/array.07.npy

2.88 KB
Binary file not shown.

fixture/json2/codec.00/config.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"allow_nan": true,
3+
"check_circular": true,
4+
"encoding": "utf-8",
5+
"ensure_ascii": true,
6+
"id": "json2",
7+
"indent": null,
8+
"separators": [
9+
",",
10+
":"
11+
],
12+
"skipkeys": false,
13+
"sort_keys": true,
14+
"strict": true
15+
}

0 commit comments

Comments
 (0)