Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
make sure deserialize function recongnises awkward0 name as well (#260)
Browse files Browse the repository at this point in the history
* make sure deserialize function recongnises awkward0 name as well

* Tested manually (CI is not automated anymore) and bumped version.

Co-authored-by: Jim Pivarski <[email protected]>
  • Loading branch information
kgizdov and jpivarski authored Jan 25, 2021
1 parent 1195301 commit 3ba6eb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions awkward0/persist.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,8 @@ def deserialize(storage, name="", whitelist=whitelist, cache=None, seen=None):
schema = schema.decode("ascii")
schema = json.loads(schema)

if "awkward" not in schema:
raise ValueError("JSON object is not an Awkward Array schema (missing 'awkward' field)")
if "awkward" not in schema and "awkward0" not in schema:
raise ValueError("JSON object is not an Awkward Array schema (missing 'awkward' or 'awkward0' field). schema is: {}".format(schema))

prefix = schema.get("prefix", "")
if seen is None:
Expand Down
2 changes: 1 addition & 1 deletion awkward0/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import re

__version__ = "0.15.2"
__version__ = "0.15.3"
version = __version__
version_info = tuple(re.split(r"[-\.]", __version__))

Expand Down

0 comments on commit 3ba6eb1

Please sign in to comment.