Skip to content

Commit

Permalink
Ensure backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mannreis committed Jan 13, 2025
1 parent 0328656 commit d366ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zarr/core/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,8 @@ def _from_bytes_v2(
v2_consolidated_metadata = json.loads(consolidated_metadata_bytes.to_bytes())
v2_consolidated_metadata = v2_consolidated_metadata["metadata"]
# We already read zattrs and zgroup. Should we ignore these?
v2_consolidated_metadata.pop(".zattrs")
v2_consolidated_metadata.pop(".zgroup")
v2_consolidated_metadata.pop(".zattrs", None)
v2_consolidated_metadata.pop(".zgroup", None)

consolidated_metadata: defaultdict[str, dict[str, Any]] = defaultdict(dict)

Expand Down

0 comments on commit d366ae9

Please sign in to comment.