segmenttable_get_by_name

igwn_ligolw.utils.segments.segmenttable_get_by_name(xmldoc, name)

Retrieve the segmentlists whose name equals name. The result is a segmentlistdict indexed by instrument.

The output of this function is not coalesced, each segmentlist contains the segments as found in the segment table.

NOTE: this is a light-weight version of the .get_by_name() method of the LigolwSegments class intended for use when the full machinery of that class is not required. Considerably less document validation and error checking is performed by this version. Consider using that method instead if your application will be interfacing with the document via that class anyway.