From 42c2bf82a1e97a421ee6c2e254407888026e237c Mon Sep 17 00:00:00 2001 From: David Hendriks <davidhendriks93@gmail.com> Date: Thu, 14 Jan 2021 12:04:18 +0000 Subject: [PATCH] grid now outputs current system for each thread --- binarycpython/utils/grid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binarycpython/utils/grid.py b/binarycpython/utils/grid.py index b80b843b1..97e52e8a6 100644 --- a/binarycpython/utils/grid.py +++ b/binarycpython/utils/grid.py @@ -931,10 +931,10 @@ class Population: # print("Process {} is handling system {}".format(ID, localcounter)) - # In some cases, the whole run crashes. To be able to figure out which system that was on, we log each current system to a file (each thread has one). Each new system overrides the previous with open(os.path.join(self.grid_options["tmp_dir"], "thread_{}_current_system.txt".format(self.process_ID)), 'w') as f: - f.write(full_system_dict) + binary_cmdline_string = self._return_argline(full_system_dict) + f.write(binary_cmdline_string) # Evolve the system self._evolve_system_mp(full_system_dict) -- GitLab