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 = blosc2.arange(0, 100, dtype=np.int64, shape=(10, 10)) >>> # Save the array to a file >>> blosc2.save(array, "array.b2", mode="w")