read_cache#
- gwpy.io.cache.read_cache(cachefile: Readable, coltype: GpsParser = <class 'lal.LIGOTimeGPS'>, sort: Callable[[str], Any] | None = None, segment: Segment | None = None, *, strict: bool = False) list[str][source]#
Read a LAL- or FFL-format cache file as a list of file paths.
- Parameters:
- cachefile
str,pathlib.Path,file Input file or file path to read.
- coltype
LIGOTimeGPS,int, optional Type for GPS times.
- sort
callable, optional A callable key function by which to sort the output list of file paths
- segment
gwpy.segments.Segment, optional A GPS
[start, stop)interval, if given only files overlapping this interval will be returned.- strict
bool, optional If
Falsewarn about entries that don’t follow the LIGO-T010150 standard, then skip them; ifTrueall errors are raised as exceptions.
- cachefile
- Returns: