Skip to content

Commit 01ae1f7

Browse files
committed
fix: Update cutout due to #262 (#334)
## Description The recent PR #262 broke the cutout input ***As a contributor to the Anemoi framework, please ensure that your changes include unit tests, updates to any affected dependencies and documentation, and have been tested in a parallel setting (i.e., with multiple GPUs). As a reviewer, you are also responsible for verifying these aspects and requesting changes if they are not adequately addressed. For guidelines about those please refer to https://anemoi.readthedocs.io/en/latest/*** By opening this pull request, I affirm that all authors agree to the [Contributor License Agreement.](https://github.com/ecmwf/codex/blob/main/Legal/contributor_license_agreement.md)
1 parent 836a864 commit 01ae1f7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/anemoi/inference/inputs/cutout.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,7 @@ def load_forcings_state(self, *, dates: list[Date], current_state: State) -> Sta
233233
combined_fields = {}
234234

235235
for source in self.sources.keys():
236-
source_state = self.sources[source].load_forcings_state(
237-
variables=self.variables, dates=dates, current_state=current_state
238-
)["fields"]
236+
source_state = self.sources[source].load_forcings_state(dates=dates, current_state=current_state)["fields"]
239237
source_mask = self.masks[source]
240238

241239
combined_fields = _mask_and_combine_states(combined_fields, source_state, source_mask, source_state.keys())

0 commit comments

Comments
 (0)