for n, filename in enumerate(filenames): # # load the document # if options.verbose: print >>sys.stderr, "%d/%d:" % (n + 1, len(filenames)), xmldoc = utils.load_filename(filename, verbose = options.verbose, contenthandler = ligolw.LIGOLWContentHandler) binjfind.lsctables.table.InterningRowBuilder.strings.clear() # # have we already procesed it? # if ligolw_process.doc_includes_process(xmldoc, binjfind.process_program_name): if options.verbose: print >>sys.stderr, "warning: %s already processed," % (filename or "stdin"), if not options.force: if options.verbose: print >>sys.stderr, "skipping (use --force to force)" continue if options.verbose: print >>sys.stderr, "continuing by --force" # # add process metadata to document # process = binjfind.append_process(xmldoc, match_algorithm = options.match_algorithm, comment = options.comment)
for n, filename in enumerate(filenames): # # Load the file. # if options.verbose: print >> sys.stderr, "%d/%d:" % (n + 1, len(filenames)), xmldoc = ligolw_utils.load_filename(filename, verbose=options.verbose, contenthandler=LIGOLWContentHandler) # # Have we already processed it? # if ligolw_process.doc_includes_process(xmldoc, process_program_name): if options.verbose: print >> sys.stderr, "warning: %s already processed," % ( filename or "stdin"), if not options.force: if options.verbose: print >> sys.stderr, "skipping" continue if options.verbose: print >> sys.stderr, "continuing by --force" # # Add an entry to the process table. # process = ligolw_process.register_to_xmldoc(xmldoc,
for n, filename in enumerate(filenames): # # Load the file. # if options.verbose: print >>sys.stderr, "%d/%d:" % (n + 1, len(filenames)), xmldoc = ligolw_utils.load_filename(filename, verbose = options.verbose, contenthandler = LIGOLWContentHandler) # # Have we already processed it? # if ligolw_process.doc_includes_process(xmldoc, process_program_name): if options.verbose: print >>sys.stderr, "warning: %s already processed," % (filename or "stdin"), if not options.force: if options.verbose: print >>sys.stderr, "skipping" continue if options.verbose: print >>sys.stderr, "continuing by --force" # # Add an entry to the process table. # process = ligolw_process.register_to_xmldoc(xmldoc, process_program_name, paramdict, comment = options.comment,