From 158218a24d9089550b82a0b3014abd87a897b899 Mon Sep 17 00:00:00 2001
From: David Hendriks <davidhendriks93@gmail.com>
Date: Wed, 25 Aug 2021 17:48:18 +0100
Subject: [PATCH] updated code to add all the analytic information of the run
 to the metadata too

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

diff --git a/binarycpython/utils/grid.py b/binarycpython/utils/grid.py
index 5a5d8ec68..1e69fd1de 100644
--- a/binarycpython/utils/grid.py
+++ b/binarycpython/utils/grid.py
@@ -796,6 +796,9 @@ class Population:
             "zero_prob_stars_skipped": self.grid_options['_zero_prob_stars_skipped']
         }
 
+        # Add analytics dict to the metadata too:
+        self.grid_ensemble_results['metadata'].update(analytics_dict)
+
         ##
         # Clean up code: remove files, unset values, unload interpolators etc. This is placed in the general evolve function,
         # because that makes for easier control
-- 
GitLab