Improved error handling in datafind.find_frametype
This PR improves the error handling in the gwpy.io.datafind.find_frametype
method -- fixes #296 (closed) with a better error message. The main user-level change is that the exclude_tape
keyword argument was renamed allow_tape
to bring it inline with the TimeSeries.find
arguments.
The new error for a channel not found is:
ValueError: Cannot locate 'L1:Test' in any known frametype at GPS=1158710417 [those files on tape have not been checked, use allow_tape=True to perform a complete search]
EDIT: fixes #288 (closed) by improving documentation of the allow_tape
kwarg in the TimeSeries
object.