create_dataset#

gwpy.io.hdf5.create_dataset(
parent: Group | File,
path: str,
*,
overwrite: bool = False,
**kwargs: object,
) Dataset[source]#

Create a new dataset inside the parent HDF5 object.

Parameters:
parenth5py.Group, h5py.File

the object in which to create a new dataset

pathstr

the path at which to create the new dataset

overwritebool

if True, delete any existing dataset at the desired path, default: False

**kwargs

other arguments are passed directly to h5py.Group.create_dataset()

Returns:
dataseth5py.Dataset

the newly created dataset