% options.vetoes_name, file=sys.stderr) vetoes = None else: vetoes = ligolw_segments.segmenttable_get_by_name( xmldoc, options.vetoes_name).coalesce() # # Run coincidence algorithm. # thinca.ligolw_thinca( xmldoc, process_id=process.process_id, delta_t=options.threshold, ntuple_comparefunc=ntuple_comparefunc, seglists=None, # FIXME veto_segments=vetoes, min_instruments=options.min_instruments, verbose=options.verbose) # # Close out the process table. # ligolw_process.set_process_end_time(process) # # Write back to disk, and clean up. #
elif not ligolw_segments.has_segment_tables(xmldoc, name = options.vetoes_name): if options.verbose: print("warning: document contains segment definitions but none named \"%s\", vetoes will not be applied" % options.vetoes_name, file=sys.stderr) vetoes = None else: vetoes = ligolw_segments.segmenttable_get_by_name(xmldoc, options.vetoes_name).coalesce() # # Run coincidence algorithm. # thinca.ligolw_thinca( xmldoc, process_id = process.process_id, delta_t = options.threshold, ntuple_comparefunc = ntuple_comparefunc, seglists = None, # FIXME veto_segments = vetoes, min_instruments = options.min_instruments, verbose = options.verbose ) # # Close out the process table. # ligolw_process.set_process_end_time(process) # # Write back to disk, and clean up. #
if options.verbose: print >>sys.stderr, "warning: document contains segment definitions but none named \"%s\", vetoes will not be applied" % options.vetoes_name vetoes = None else: vetoes = ligolw_segments.segmenttable_get_by_name(xmldoc, options.vetoes_name).coalesce() # # Run coincidence algorithm. # thinca.ligolw_thinca( xmldoc, process_id = process.process_id, coinc_definer_row = thinca.InspiralCoincDef, thresholds = options.threshold, ntuple_comparefunc = ntuple_comparefunc, seglists = None, # FIXME veto_segments = vetoes, min_instruments = options.min_instruments, verbose = options.verbose ) # # Close out the process table. # ligolw_process.set_process_end_time(process) # # Write back to disk, and clean up. #