fromlalcache

igwn_segments.utils.fromlalcache(cachefile, coltype=<class 'int'>)

Construct a segmentlist representing the times spanned by the files named in the LAL cache contained in the file object cachefile. The segmentlist will be created with segments whose boundaries are of type coltype, which should raise ValueError if it cannot convert its string argument.

Example:

>>> from lal import LIGOTimeGPS
>>> cache_seglists = fromlalcache(open(filename), coltype = LIGOTimeGPS).coalesce()

See also:

lal.utils.CacheEntry