From dd16537d5164438013f18bdabf91f0556612d04c Mon Sep 17 00:00:00 2001 From: Leandro Ishi Date: Thu, 30 Mar 2023 18:47:24 +0100 Subject: [PATCH] Small bugfix to filter_queries.py --- scripts/filter_queries.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/filter_queries.py b/scripts/filter_queries.py index 9707671..624c762 100755 --- a/scripts/filter_queries.py +++ b/scripts/filter_queries.py @@ -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