write_tables_to_document#

gwpy.io.ligolw.write_tables_to_document(
xmldoc: Document,
tables: Iterable[Table],
*,
overwrite: bool = False,
) Document[source]#

Write the given LIGO_LW table into a Document.

Parameters:
xmldocDocument

the document to write into

tableslist of Table

the set of tables to write

overwritebool, optional, default: False

if True, delete an existing instance of the table type, otherwise append new rows