Skip to content

Commit

Permalink
Small bugfix to filter_queries.py
Browse files Browse the repository at this point in the history
  • Loading branch information
leoisl committed Mar 30, 2023
1 parent 302ce2d commit dd16537
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scripts/filter_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,11 @@ def _create_query_dict(fx_fn, keep_matches):
def process_cobs_file(self, cobs_fn):
for i, (qname, batch, matches) in enumerate(cobs_iterator(cobs_fn)):
print(f"Processing batch {batch} query #{i} ({qname})", file=sys.stderr)
#try:
# _ = self._query_dict[qname]
#except KeyError:
# self._query_dict[qname] = SingleQuery(qname, self._keep_matches)
#print(f"qname {qname} batch {batch} matches {matches}")
try:
_ = self._query_dict[qname]
except KeyError:
self._query_dict[qname] = SingleQuery(qname, self._keep_matches)
self._query_dict[qname].add_matches(batch, matches)
#print(qname)

def print_tsv_summary(self):
d = self._query_dict
Expand Down

0 comments on commit dd16537

Please sign in to comment.