with_write_hdf5#
- gwpy.io.hdf5.with_write_hdf5(func: Callable[..., object]) Callable[..., object][source]#
Decorate an HDF5-writing function to open a filepath if needed.
funcshould be written to take the object to be written as the first argument, and then presume anh5py.Groupas the second.This method uses keywords
appendandoverwriteas follows if the output file already exists:append=False, overwrite=False: raiseIOErrorappend=True: open in modeaappend=False, overwrite=True: open in modew