file_segment

gwdatafind.utils.file_segment(filename)

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

Parameters:
filename : str

the path of a file.

Returns:
segment : segment

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