zarr-python
zarr-python copied to clipboard
Using a group prefixed with `-` causes lstrip issue
Zarr version
2.15.0
Numcodecs version
N/A
Python Version
3.8.17
Operating System
Linux
Installation
Installed via pip
Description
Not sure about what version of Numcodecs I'm using, but my issue happens whenever a group is named "-1".
The exact exception is: AttributeError: 'list' object has no attribute 'lstrip'
And the stack trace is:
Steps to reproduce
call write_image from ome.zarr package with a group named "-1".
Additional output
No response
I'm wondering if somwhere there's an attempt to cast the node name as an integer (assuming greater-than zero chunk names). Can you reproduce this issue without ome-zarr-py?
cc: @will-moore
Closing because we don't have a reproducer and 2.15 is now quite old.