diff --git a/binarycpython/utils/functions.py b/binarycpython/utils/functions.py index 50f467ed16b9da2efc07d24df31ad5875239f5e0..b98619a72da8c8972de77d34102a830437590a62 100644 --- a/binarycpython/utils/functions.py +++ b/binarycpython/utils/functions.py @@ -112,9 +112,9 @@ def create_hdf5(data_dir): content_data_dir = os.listdir(data_dir) # Settings - settings_file = [ + settings_file = os.path.join(data_dir, [ file for file in content_data_dir if file.endswith("_settings.json") - ][0] + ][0]) with open(settings_file, "r") as f: settings_json = json.load(f) @@ -123,7 +123,7 @@ def create_hdf5(data_dir): # Get data files data_files = [el for el in content_data_dir if el.endswith(".dat")] - + print(data_files) # Create the file hdf5_filename = os.path.join( data_dir, "{base_name}.hdf5".format(base_name=base_name)