Skip to content
Snippets Groups Projects
Commit 07ad07fb authored by David Hendriks's avatar David Hendriks
Browse files

updated func

parent 38593498
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment