Skip to content

Commit c8eb79c

Browse files
Dana SinghDana Singh
authored andcommitted
#48 Update based on yaml schema
1 parent d9530f3 commit c8eb79c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Jinja2Filters/form_task_parameters.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,17 @@ def form_task_parameters(grid_type, temporal_type, pp_components_str, yamlfile):
6262
continue
6363

6464
for static_info in comp_info["static"]:
65-
if static_info.get("sources") is not None:
66-
results = results + static_info.get("sources")
65+
if static_info.get("source") is not None:
66+
results.append(static_info.get("source"))
67+
#results = results + static_info.get("sources")
6768
## to-do: assess offline diagnostics
6869
# elif:
6970
# results = results + static_info.get("offline_sources")
7071

7172
elif temporal_type == "temporal":
72-
results = results + comp_info.get("sources")
73+
for hist_file in comp_info["sources"]:
74+
results.append(hist_file.get("history_file"))
75+
#results = results + comp_info.get("sources")
7376

7477
else:
7578
raise Exception(f"Unknown temporal type: {temporal_type}")

0 commit comments

Comments
 (0)