Skip to content

Commit 8a67021

Browse files
authored
update imports in docs (#3591)
* update imports in docs * fix tests
1 parent 8eb244f commit 8a67021

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/user-guide/arrays.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ built-in delta filter:
213213

214214
```python exec="true" session="arrays" source="above" result="ansi"
215215
import lzma
216-
from numcodecs.zarr3 import LZMA
216+
from zarr.codecs.numcodecs import LZMA
217217

218218
lzma_filters = [dict(id=lzma.FILTER_DELTA, dist=4), dict(id=lzma.FILTER_LZMA2, preset=1)]
219219
compressors = LZMA(filters=lzma_filters)
@@ -251,7 +251,7 @@ mechanism for configuring filters outside of the primary compressor.
251251
Here is an example using a delta filter with the Blosc compressor:
252252

253253
```python exec="true" session="arrays" source="above" result="ansi"
254-
from numcodecs.zarr3 import Delta
254+
from zarr.codecs.numcodecs import Delta
255255

256256
filters = [Delta(dtype='int32')]
257257
compressors = zarr.codecs.BloscCodec(cname='zstd', clevel=1, shuffle=zarr.codecs.BloscShuffle.shuffle)

tests/test_regression/scripts/v3.0.8.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# /// script
22
# requires-python = "==3.12"
33
# dependencies = [
4-
# "zarr==3.0.8"
4+
# "zarr==3.0.8",
5+
# "numcodecs==0.16.3"
56
# ]
67
# ///
78

0 commit comments

Comments
 (0)