From c38d20bfbd2b6e075f37b469b72ed6199184febc Mon Sep 17 00:00:00 2001 From: David Hendriks <davidhendriks93@gmail.com> Date: Fri, 14 Feb 2020 13:14:10 +0000 Subject: [PATCH] Solved some bugs --- binarycpython/utils/functions.py | 3 ++- binarycpython/utils/grid.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/binarycpython/utils/functions.py b/binarycpython/utils/functions.py index 48de2b757..da2c5bb5e 100644 --- a/binarycpython/utils/functions.py +++ b/binarycpython/utils/functions.py @@ -118,9 +118,10 @@ def create_hdf5(data_dir, name): # Make HDF5: # Create the file hdf5_filename = os.path.join( - data_dir, "{base_name}.hdf5".format(base_name=base_name) + data_dir, "{}".format(name) ) print("Creating {}".format(hdf5_filename)) + f = h5py.File(hdf5_filename, "w") # Get content of data_dir content_data_dir = os.listdir(data_dir) diff --git a/binarycpython/utils/grid.py b/binarycpython/utils/grid.py index 7ce68445f..4e667d2d1 100644 --- a/binarycpython/utils/grid.py +++ b/binarycpython/utils/grid.py @@ -801,7 +801,7 @@ class Population(object): full_system_dict.update(system) binary_cmdline_string = self.return_argline(full_system_dict) - # print("{}/{}".format(i+1, total_starcount_run), binary_cmdline_string) + print("{}/{}".format(i+1, total_starcount_run), binary_cmdline_string) yield binary_cmdline_string # yield i print("generator done") -- GitLab