From 07ad07fb8a2a1de6802856eaf46d55f5957cd4f0 Mon Sep 17 00:00:00 2001
From: David Hendriks <davidhendriks93@gmail.com>
Date: Mon, 27 Jan 2020 17:05:01 +0000
Subject: [PATCH] updated func

---
 binarycpython/utils/functions.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/binarycpython/utils/functions.py b/binarycpython/utils/functions.py
index 50f467ed1..b98619a72 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)
-- 
GitLab