write_tables#
- gwpy.io.ligolw.write_tables(
- target: Writable | Document,
- tables: Iterable[Table],
- *,
- append: bool = False,
- overwrite: bool = False,
- contenthandler: type[ContentHandler] | None = None,
- **kwargs,
Write an LIGO_LW table to file.
- Parameters:
- target
str,file,Document the file or document to write into
- tables
list,tupleofTable the tables to write
- append
bool, optional, default:False if
True, append to an existing file/table, otherwiseoverwrite- overwrite
bool, optional, default:False if
True, delete an existing instance of the table type, otherwise append new rows- contenthandler
ContentHandler, optional the content handler with which to parse the document, if not given a default handler will be created using
default_content_handler().- **kwargs
other keyword arguments to pass to
load_fileobj()as appropriate
- target