Skip to content

Raise IndexError early when reading an empty list of files

Duncan Macleod requested to merge github/fork/duncanmmacleod/io-mp-tests into develop

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.

Merge request reports