gwdetchar.io.ligolw module

Utilties for LIGO_LW XML I/O

gwdetchar.io.ligolw.new_table(tab, *args, **kwargs)[source]

Create a new Table

This is just a convenience wrapper around New

Parameters:

tab : type, str

Table subclass, or name of table to create

*args, **kwargs

other parameters are passed directly to New

Returns:

table : Table

a newly-created table with the relevant attributes and structure

gwdetchar.io.ligolw.segments_from_sngl_burst(table, padding, known=None)[source]

Create a DataQualityDict of segments from the given SnglBurstTable

This method creates a DataQualityFlag for each unique channel found in the given table by padding the peak time by the given amount on each side

gwdetchar.io.ligolw.sngl_burst_from_segments(segs, **params)[source]

Create a SnglBurstTable from a `~ligo.segments.segmentlist

gwdetchar.io.ligolw.sngl_burst_from_times(times, **params)[source]

Create a SnglBurstTable from an array of times

gwdetchar.io.ligolw.table_to_document(table)[source]