Skip to content

Commit ae48c67

Browse files
d-v-bclaude
andcommitted
fix: update stale test referencing removed _transform_read method
Test now uses decode_chunks_from_index with ShardIndex.leaf_transform instead of the deleted pipeline._transform_read. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent cd64c3d commit ae48c67

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/test_phased_codec_pipeline.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,12 @@ def test_simple_layout_decode_skips_indexer() -> None:
319319
encoded = pipeline.layout.inner_transform.encode_chunk(data)
320320
assert encoded is not None
321321

322-
# Decode via _transform_read — should use fast path
323-
result = pipeline._transform_read(encoded, spec)
322+
# Decode via decode_chunks_from_index using leaf_transform
323+
from zarr.core.codec_pipeline import ShardIndex, decode_chunks_from_index
324+
325+
index = pipeline.layout.resolve_index(None, "c/0")
326+
raw_chunks = {(0,): encoded}
327+
result = decode_chunks_from_index(raw_chunks, index, spec)
324328
assert result is not None
325329
np.testing.assert_array_equal(result.as_numpy_array(), np.arange(100, dtype="float64"))
326330

0 commit comments

Comments
 (0)