We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a62240b commit 4bfad1bCopy full SHA for 4bfad1b
src/zarr/core/array.py
@@ -156,6 +156,12 @@ async def get_array_metadata(
156
# V3 arrays are comprised of a zarr.json object
157
assert zarr_json_bytes is not None
158
metadata_dict = json.loads(zarr_json_bytes.to_bytes())
159
+
160
+ if metadata_dict.get("node_type") != "array":
161
+ # This KeyError is load bearing for `open`. That currently tries
162
+ # to open the node as an `array` and then falls back to opening
163
+ # as a group.
164
+ raise KeyError
165
return metadata_dict
166
167
0 commit comments