def element_filter(name, attrs):
    """
	Return True if name & attrs describe a search summary table or a
	process table.
	"""
    return lsctables.IsTableProperties(lsctables.SearchSummaryTable, name,
                                       attrs) or lsctables.IsTableProperties(
                                           lsctables.ProcessTable, name, attrs)
 def __init__(self, xmldoc):
     ligolw.PartialLIGOLWContentHandler.__init__(
         self, xmldoc, lambda name, attrs: lsctables.IsTableProperties(
             lsctables.SummValueTable, name, attrs))
Beispiel #3
0
def element_filter(name, attrs):
    return lsctables.IsTableProperties(
        lsctables.SnglBurstTable, name, attrs) or lsctables.IsTableProperties(
            lsctables.SimBurstTable,
            name, attrs) or lsctables.IsTableProperties(
                lsctables.SearchSummaryTable, name, attrs)
 def filter_func(name, attrs):
     for table in tables:
         if lsctables.IsTableProperties(table, name, attrs):
             return True
     return False