From 75d5a0e51fb7055b807607c7c978444630cb2781 Mon Sep 17 00:00:00 2001
From: Robert Izzard <r.izzard@surrey.ac.uk>
Date: Mon, 11 Oct 2021 16:36:44 +0100
Subject: [PATCH] add cyan boxes

---
 binarycpython/utils/grid.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/binarycpython/utils/grid.py b/binarycpython/utils/grid.py
index 38950c017..4c0dac214 100644
--- a/binarycpython/utils/grid.py
+++ b/binarycpython/utils/grid.py
@@ -790,6 +790,8 @@ class Population:
             colour = the colour to be used, usually this is 'yellow on black'
                      as set in the ANSI_colours dict
             boxchar = the character used to make the box, '*' by default
+
+        Note: handles tabs (\t) badly, do not use them!
         """
         strlen = 0
         strings = []
@@ -1726,9 +1728,10 @@ class Population:
 
         end_process_time = datetime.datetime.now()
 
+        # thread end message
         verbose_print(
             self._boxed(
-            "Process {} finished:\n\tgenerator started at {}, done at {} (total: {}s of which {}s interfacing with binary_c).\n\tRan {} systems with a total probability of {:g}.\n\tThis thread had {} failing systems with a total probability of {}\n\tSkipped a total of {} systems because they had 0 probability".format(
+            "Process {} finished:\ngenerator started at {}\ngenerator finished at {}\ntotal: {}s\nof which {}s with binary_c\nRan {} systems\nwith a total probability of {:g}\nThis thread had {} failing systems\nwith a total failed probability of {}\nSkipped a total of {} zero-probability systems\n".format(
                 ID,
                 start_process_time.isoformat(),
                 end_process_time.isoformat(),
@@ -1739,7 +1742,7 @@ class Population:
                 self.grid_options["_failed_count"],
                 self.grid_options["_failed_prob"],
                 zero_prob_stars_skipped,
-            )),
+        ),colour="cyan on black"),
             self.grid_options["verbosity"],
             1,
         )
-- 
GitLab