Raise IndexError early when reading an empty list of files
This PR modifies gwpy.io.mp.read_multi
(the function that underpins EventTable.read
, TimeSeries.read
, etc) to raise an IndexError
early if the input source
argument is parsed as an empty list.
Currently the behaviour in this condition is unpredictable, and dependent on the other keyword arguments, which doesn't make a great UX.
I also added an independent test suite for that function.