Commit 0ba57da0 authored by Kipp Cannon's avatar Kipp Cannon
Browse files

lalapps_bucut, lalapps_binjfind: API updates

- remove references to obsolete InterningRowBuilder type.
parent a41df6c8
......@@ -82,23 +82,6 @@ def parse_command_line():
return options, (filenames or [None])
#
# =============================================================================
#
# Input
#
# =============================================================================
#
#
# Use interning row builder to save memory.
#
binjfind.lsctables.table.TableStream.RowBuilder = binjfind.lsctables.table.InterningRowBuilder
#
# =============================================================================
#
......@@ -151,7 +134,6 @@ for n, filename in enumerate(filenames):
if options.verbose:
print("%d/%d:" % (n + 1, len(filenames)), end=' ', file=sys.stderr)
xmldoc = ligolw_utils.load_filename(filename, verbose = options.verbose, contenthandler = ligolw.LIGOLWContentHandler)
binjfind.lsctables.table.InterningRowBuilder.strings.clear()
#
# have we already procesed it?
......
......@@ -129,17 +129,9 @@ def parse_command_line():
#
@lsctables.use_in
class ContentHandler(ligolw.LIGOLWContentHandler):
pass
lsctables.use_in(ContentHandler)
#
# Use interning row builder to save memory.
#
lsctables.table.TableStream.RowBuilder = lsctables.table.InterningRowBuilder
#
......@@ -505,7 +497,6 @@ else:
for filename in filenames:
xmldoc = ligolw_utils.load_filename(filename, verbose = options.verbose, contenthandler = ContentHandler)
lsctables.table.InterningRowBuilder.strings.clear()
xmldoc = ligolw_bucut(xmldoc, options, keep_this_sngl_burst, veto_segments = veto_segments, del_non_coincs = options.coinc_only, del_skipped_injections = options.inj_made_only, program = options.program, verbose = options.verbose)
ligolw_utils.write_filename(xmldoc, filename, verbose = options.verbose, gz = (filename or "stdout").endswith(".gz"))
xmldoc.unlink()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment