sieve#

gwpy.io.cache.sieve(
cache: list[CacheEntryType],
segment: Segment,
*,
strict: bool = True,
) list[CacheEntryType][source]#

Filter the cache to find those entries that overlap segment.

Parameters:
cachelist

Input list of file paths

segmentSegment

The [start, stop) interval to match against.

strictbool, optional

If True raise all exceptions, if False emit warnings when the file segment cannot be determined.

Warns:
UserWarning

For any files for which the file segment cannot be determined, if strict=False is given; these files are excluded from the sieved cache.