From 79636d518ea6f1ade216b7795124d5159bf3c7e3 Mon Sep 17 00:00:00 2001 From: David Hendriks <davidhendriks93@gmail.com> Date: Wed, 18 Aug 2021 17:35:38 +0100 Subject: [PATCH] prevented the ensemble results from being reformatted in each process --- binarycpython/utils/grid.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/binarycpython/utils/grid.py b/binarycpython/utils/grid.py index a77abd8c3..3d9f23a53 100644 --- a/binarycpython/utils/grid.py +++ b/binarycpython/utils/grid.py @@ -1410,11 +1410,6 @@ class Population: ensemble_json["ensemble"] = extract_ensemble_json_from_string( ensemble_raw_output ) # Load this into a dict so that we can combine it later - - # Extra ensemble result manipulation: - # We need to reformat and multiply by a factor - ensemble_json["ensemble"] = self.format_ensemble_results(ensemble_json["ensemble"]) - gc.collect() else: # If we do not allow this, automatically we will export this to the data_dir, in # some formatted way @@ -1427,7 +1422,7 @@ class Population: # Write to file with open(output_file, "w") as f: - f.write(ensemble_raw_output) + f.write(self.format_ensemble_results(ensemble_raw_output)) print( "Thread {}: Wrote ensemble results directly to file: {}".format( -- GitLab