file_segment#

gwpy.io.cache.file_segment(filename: CacheEntry | FileSystemPath) Segment[source]#

Return the data segment for a filename following LIGO-T010150.

Parameters:
filenamestr, PathLike, CacheEntry

The path name of a file.

Returns:
segmentSegment

the [start, stop) GPS segment covered by the given file

Notes

LIGO-T010150 declares a filenaming convention that includes documenting the GPS start integer and integer duration of a file, see that document for more details.