Skip to content
Snippets Groups Projects
Commit 990c33bd authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

fix

parent 00bd22f1
Branches
Tags
No related merge requests found
...@@ -224,8 +224,14 @@ def reference_data_files(entity, header, prefix=""): ...@@ -224,8 +224,14 @@ def reference_data_files(entity, header, prefix=""):
def get_data_glob(header): def get_data_glob(header):
if "data" in header:
name = "data"
elif "results" in header:
name = "results"
else:
raise Exception("no suitable header fields")
globs = [] globs = []
for el in header["data"]: for el in header[name]:
if isinstance(el, dict) and "filename" in el: if isinstance(el, dict) and "filename" in el:
globs.append(el["filename"]) globs.append(el["filename"])
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment