blosc2.save#
- blosc2.save(array: NDArray, urlpath: str, contiguous=True, **kwargs: Any) None #
Save an array to a file.
- Parameters:
Examples
>>> import blosc2 >>> import numpy as np >>> # Create an array >>> array = np.arange(0, 100, dtype=np.int64).reshape(10, 10) >>> # Save the array to a file >>> blosc2.save(array, "array.b2")