You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c1353bf
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(metadata): one rule for bare sizes and edge lists; one noun in messages
- `_validate_chunk_shapes` decides "edge list or bare size" with one
`match`: a list or tuple is an edge list, anything else is a bare size
checked by `parse_chunk_edge`, so a string dimension such as `"10"` is
rejected as not an int instead of being iterated per character.
Stored rectilinear `from_dict` makes the same JSON split and passes the
dimension to `expand_rle`, so an invalid edge or RLE count inside a
list names its dimension.
- Messages say "dimension" throughout, lowercase after the colon
("Dimension 0: chunk edge length must be >= 1, got 0"); the upgrade
warnings read "0 in dimension 0 as one chunk spanning the dimension".
- The upgrades test for JSON arrays with `list` only (a stored document
holds no tuples), and `_read_chunk_size` says what `span=None` means.
- `ArrayV2Metadata.from_dict` copies the document once.
- The rejected stored chunk shapes get one test per error case.
Assisted-by: ClaudeCode:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments