to_hdf5#
- caput.mpiarray.MPIArray.to_hdf5(f: str | h5py.File | h5py.Group, dataset: str, create: bool = False, chunks: tuple[int, Ellipsis] | None = None, compression: str | int | None = None, compression_opts: tuple | None = None) None[source]#
Parallel write into a contiguous HDF5 dataset.
- Parameters:
- f
str|h5py.File|h5py.Group File to write dataset into.
- dataset
str Name of dataset to write into. Should not exist.
- createbool, optional
True if a new file should be created (if needed).
- chunks
tuple[int, …] |None, optional Chunk shape.
- compression
str|int|None, optional Name or identifier of HDF5 compression filter.
- compression_opts
tuple|None, optional See HDF5 documentation for compression filters. Compression options for the dataset.
- f
- Raises:
ValueErrorIf
h5pyis built without MPI support and f is not a string.