Skip to content

Commit d8734c5

Browse files
author
Luke Shaw
committed
Correct example in blosc2.save
1 parent 8082495 commit d8734c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/blosc2/ndarray.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3545,9 +3545,9 @@ def save(array: NDArray, urlpath: str, contiguous=True, **kwargs: Any) -> None:
35453545
>>> import blosc2
35463546
>>> import numpy as np
35473547
>>> # Create an array
3548-
>>> array = np.arange(0, 100, dtype=np.int64).reshape(10, 10)
3548+
>>> array = blosc2.arange(0, 100, dtype=np.int64, shape=(10, 10))
35493549
>>> # Save the array to a file
3550-
>>> blosc2.save(array, "array.b2")
3550+
>>> blosc2.save(array, "array.b2", mode="w")
35513551
"""
35523552
array.save(urlpath, contiguous, **kwargs)
35533553

0 commit comments

Comments
 (0)