diff --git a/binarycpython/utils/grid.py b/binarycpython/utils/grid.py index b80b843b12bafc5337c962f891b2efbd515389b4..97e52e8a64883f8bb18a8142899079ee2e096cd9 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)