igwn_ligolw.utils.ligolw_add Module

Add (merge) LIGO LW XML files containing LSC tables.

Functions

compare_table_cols(a, b)

Return False if the two tables a and b have the same columns (ignoring order) according to LIGO LW name conventions, return True otherwise.

ligolw_add(xmldoc, urls[, ...])

An implementation of the LIGO LW add algorithm.

merge_compatible_tables(elem)

Below the given element, find all Tables whose structure is described in lsctables, and merge compatible ones of like type.

merge_ligolws(elem)

Merge all LIGO_LW elements that are immediate children of elem by appending their children to the first.

reassign_ids(doc[, verbose])

Assign new IDs to all rows in all LSC tables in doc so that there are no collisions when the LIGO_LW elements are merged.

remove_input(urls, preserves[, verbose])

Attempt to delete all files identified by the URLs in urls except any that are the same as the files in the preserves list.

url2path(url)

If url identifies a file on the local host, return the path to the file otherwise raise ValueError.