Skip to content

Commit 02eaa6b

Browse files
fix: boundary forcings inputs (#226)
1 parent 8cca098 commit 02eaa6b

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/anemoi/inference/metadata.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -959,16 +959,13 @@ def boundary_forcings_inputs(self, context: object, input_state: dict) -> list:
959959
list
960960
The list of boundary forcings inputs.
961961
"""
962-
result = []
962+
if "output_mask" not in self._supporting_arrays:
963+
return []
963964

964-
if "output_mask" in self._supporting_arrays:
965-
result.append(
966-
context.create_boundary_forcings(
967-
self.prognostic_variables,
968-
self.prognostic_input_mask,
969-
)
970-
)
971-
return result
965+
return context.create_boundary_forcings(
966+
self.prognostic_variables,
967+
self.prognostic_input_mask,
968+
)
972969

973970
###########################################################################
974971
# Supporting arrays

0 commit comments

Comments
 (0)