zarr-python icon indicating copy to clipboard operation
zarr-python copied to clipboard

Using a group prefixed with `-` causes lstrip issue

Open youngchoan opened this issue 2 years ago • 1 comments

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:

Screenshot 2023-08-16 at 8 59 47 PM

Steps to reproduce

call write_image from ome.zarr package with a group named "-1".

Additional output

No response

youngchoan avatar Aug 17 '23 01:08 youngchoan

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

joshmoore avatar Aug 24 '23 17:08 joshmoore

Closing because we don't have a reproducer and 2.15 is now quite old.

jhamman avatar Jan 04 '25 06:01 jhamman