From 9301f19a126c9fc850cdbf2e2fc0828585ce0d56 Mon Sep 17 00:00:00 2001
From: David Hendriks <davidhendriks93@gmail.com>
Date: Thu, 19 Aug 2021 19:12:59 +0100
Subject: [PATCH] fixing the tests

---
 binarycpython/utils/grid.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/binarycpython/utils/grid.py b/binarycpython/utils/grid.py
index 925eb213c..c0bfae70a 100644
--- a/binarycpython/utils/grid.py
+++ b/binarycpython/utils/grid.py
@@ -1424,7 +1424,7 @@ class Population:
                 # Write to file
                 ensemble_output = extract_ensemble_json_from_string(ensemble_raw_output)
                 with open(output_file, "w") as f:
-                    f.write(self.format_ensemble_results(ensemble_output))
+                    f.write(json.dumps(self.format_ensemble_results(ensemble_output)))
 
                 print(
                     "Thread {}: Wrote ensemble results directly to file: {}".format(
-- 
GitLab