From 7db1d38d9c13d4d60d2e1d3ecf39be0003c82f4f Mon Sep 17 00:00:00 2001 From: Ben Jeffery Date: Mon, 18 Dec 2023 23:22:57 +0000 Subject: [PATCH] Don't double count progress --- tsinfer/inference.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tsinfer/inference.py b/tsinfer/inference.py index df8842dc..d053053c 100644 --- a/tsinfer/inference.py +++ b/tsinfer/inference.py @@ -1838,11 +1838,7 @@ def match_ancestors(self): ) else: batch_results = self.match_locally(batch_ancestor_ids) - batch_results_list = [] - for result in batch_results: - batch_results_list.append(result) - self.match_progress.update() - batch_results = batch_results_list + batch_results = list(batch_results) cache.put(key, batch_results) else: logger.info(