read_cache_entry#

gwpy.io.cache.read_cache_entry(
line: str | bytes,
gpstype: GpsParser = <class 'lal.LIGOTimeGPS'>,
) str[source]#

Read a file path from a line in a cache file.

Parameters:
linestr, bytes

Line of text to parse

gpstypeLIGOTimeGPS, int, optional

Type for GPS times.

Returns:
pathstr

The file path.

Raises:
ValueError

if the line cannot be parsed successfully