From 0cb624e084ab75742589337b5ed94591f3c07a8e Mon Sep 17 00:00:00 2001
From: David Hendriks <davidhendriks93@gmail.com>
Date: Wed, 9 Jun 2021 17:42:59 +0100
Subject: [PATCH] added some output for the queue

---
 binarycpython/utils/grid.py | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/binarycpython/utils/grid.py b/binarycpython/utils/grid.py
index 7e7070077..d15149230 100644
--- a/binarycpython/utils/grid.py
+++ b/binarycpython/utils/grid.py
@@ -887,9 +887,18 @@ class Population:
         # TODO: build in method to handle with the HPC.
         # Continously fill the queue
         for system_number, system_dict in enumerate(generator):
-            # stream_logger.debug(f"producing: {system_number}")  # DEBUG
+            # Put job in queue
             job_queue.put((system_number, system_dict))
 
+            # Print some info
+            # stream_logger.debug(f"producing: {system_number}")  # DEBUG
+            verbose_print(
+                "Process {} is handling system {}".format(ID, system_number),
+                self.grid_options["verbosity"],
+                2,
+            )
+
+
             # Print current size
             # print("Current size: {}".format(save_que.qsize()))
 
-- 
GitLab