From 131be83328e459e5ffea5addc92651532cfbd098 Mon Sep 17 00:00:00 2001 From: Lee Spector Date: Wed, 10 Jan 2024 13:06:50 -0500 Subject: [PATCH] Flush output stream after each generation report --- src/propeller/gp.cljc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/propeller/gp.cljc b/src/propeller/gp.cljc index ecfc1aa..2f63c9d 100644 --- a/src/propeller/gp.cljc +++ b/src/propeller/gp.cljc @@ -40,7 +40,8 @@ {:best-gene-count (utils/count-genes (:plushy best)) :average-gene-count (float (/ (reduce + (map utils/count-genes (map :plushy pop))) (count pop)))} - {}))))) + {}))) + (flush))) (defn cleanup []