From c771bcfafba7aace9d135117d3b34a914146ffd4 Mon Sep 17 00:00:00 2001 From: Luiza Orosanu Date: Fri, 29 Sep 2017 12:56:27 +0200 Subject: [PATCH 1/2] Fix logger message typo in lsi_dispatcher --- gensim/models/lsi_dispatcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gensim/models/lsi_dispatcher.py b/gensim/models/lsi_dispatcher.py index dd18734dfb..b20e30bf22 100755 --- a/gensim/models/lsi_dispatcher.py +++ b/gensim/models/lsi_dispatcher.py @@ -124,7 +124,7 @@ def getstate(self): # and not `workers - 1` merges! # but merging only takes place once, after all input data has been processed, # so the overall effect would be small... compared to the amount of coding :-) - logger.info("merging states from %i workers", self.workers) + logger.info("merging states from %i workers", len(self.workers)) workers = list(self.workers.items()) result = workers[0][1].getstate() for workerid, worker in workers[1:]: From 504228fcd94e6d9c94f99ab42100211d6e7ddaec Mon Sep 17 00:00:00 2001 From: Menshikh Ivan Date: Mon, 2 Oct 2017 11:36:24 +0500 Subject: [PATCH 2/2] small fix --- gensim/models/lsi_dispatcher.py | 1 - 1 file changed, 1 deletion(-) diff --git a/gensim/models/lsi_dispatcher.py b/gensim/models/lsi_dispatcher.py index b20e30bf22..75a9367d5e 100755 --- a/gensim/models/lsi_dispatcher.py +++ b/gensim/models/lsi_dispatcher.py @@ -175,7 +175,6 @@ def exit(self): worker.exit() logger.info("terminating dispatcher") os._exit(0) # exit the whole process (not just this thread ala sys.exit()) -# endclass Dispatcher def main():