@io_hdf5.with_read_hdf5<EOL>def read_losc_hdf5(h5f, path='<STR_LIT>',<EOL>start=None, end=None, copy=False):
dataset = io_hdf5.find_dataset(h5f, path)<EOL>nddata = dataset[()]<EOL>xunit = parse_unit(dataset.attrs['<STR_LIT>'])<EOL>epoch = dataset.attrs['<STR_LIT>']<EOL>dt = Quantity(dataset.attrs['<STR_LIT>'], xunit)<EOL>unit = dataset.attrs['<STR_LIT>']<EOL>return TimeSeries(nddata, epoch=epoch, sample_rate=(<NUM_LIT:1>/dt).to('<STR_LIT>'),<EOL>unit=unit, name=path.rsplit('<STR_LIT:/>', <NUM_LIT:1>)[<NUM_LIT:1>],<EOL>copy=copy).crop(start=start, end=end)<EOL>
Read a `TimeSeries` from a LOSC-format HDF file.

    Parameters
    ----------
    h5f : `str`, `h5py.HLObject`
        path of HDF5 file, or open `H5File`

    path : `str`
        name of HDF5 dataset to read.

    Returns
    -------
    data : `~gwpy.timeseries.TimeSeries`
        a new `TimeSeries` containing the data read from disk