Skip to content

Improved EventTable I/O with decorators

This PR attempts to improve the EventTable I/O system, mainly to make the keyword arguments more consistent across formats.

All readers (including those inherited from astropy) now accept the columns and selection keywords, mainly thanks to the new gwpy.table.io.utils.decorate_registered_reader function.

This is technically backwards incompatible since it registers the 'hdf5' reader for the EventTable, meaning PyCBC HDF5 files cannot be distinguished from normal HDF5 files, which in turns means the format keyword now needs to be explicitly given when reading either PyCBC Live files.

Merge request reports