[Unexpected Behaviour] open_group
raises AssertionError
if array w/o group exists
#3114
Labels
bug
Potential issues with the zarr-python library
Uh oh!
There was an error while loading. Please reload this page.
Zarr version
3.0.8
Numcodecs version
0.15.1
Python Version
3.11.11
Operating System
Linux, Dockerfile based on python:3.11-slim
Installation
poetry
Description
I think there is some unexpected behavior that occurs if one
r
orr+
mode.I would have expected some meaningful error, such as the
zarr.errors.ContainsArrayError
, orFileNotFoundError
, but one just gets a very vagueAssertionError
.I would like to avoid catching such a broad error in my code.
Below you can find a reproducible test code (tested with
uv run
) that highlights the expected and actually occuring behaviour.Note on Stores:
I originally stumbled upon it when using the object store, and could directly reproduce it with the memory store, so it should be independent of the store.
Steps to reproduce
Additional output
The
test_open_group_in_dir_with_arrray
fails with the following stacktrace:The text was updated successfully, but these errors were encountered: