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

make sure deserialize function recongnises awkward0 name as well #260

Merged
merged 2 commits into from
Jan 25, 2021
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
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