# Path: zarr/errors.py
# class MetadataError(Exception):
#     pass


import json
import numpy as np
from zarr.errors import MetadataError




def decode_metadata(b):
    s = str(b, 'ascii')
    meta = json.loads(s)
    zarr_format = meta.get('zarr_format', None)
    if zarr_format != 1:

# Path: zarr/errors.py
# class MetadataError(Exception):
#     pass


# Path: zarr/meta_v1.py
import json
import numpy as np
from zarr.errors import MetadataError





def decode_metadata(b):
    s = str(b, 'ascii')
    meta = json.loads(s)
    zarr_format = meta.get('zarr_format', None)
    if zarr_format != 1:

        raise MetadataError('unsupported zarr format: %s' % zarr_format)