Skip to content

Commit 00cd1bd

Browse files
authored
Only use climo_subsections if it is non-empty (#804)
Default is climo_subsections="", so if it was not defined in the input configuration, the climo_subsections param would exist, but be empty and the subsections would not be infered.
1 parent 0ad4774 commit 00cd1bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zppy/livvkit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def determine_and_add_dependencies(
131131
)
132132

133133
climo_subsections: List[str] = []
134-
if "climo_subsections" in _c.keys():
134+
if ("climo_subsections" in _c.keys()) and _c["climo_subsections"]:
135135
climo_subsections = _c["climo_subsections"]
136136
elif ("infer_section_parameters" in _c.keys()) and _c["infer_section_parameters"]:
137137
grids = ["_native"]

0 commit comments

Comments
 (0)