Skip to content

Commit 8b22ea7

Browse files
committed
fix(retrieve): Set target from config before extras
1 parent 8d7b174 commit 8b22ea7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/anemoi/inference/commands/retrieve.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ def checkpoint_to_requests(
7777
always_split_time=use_scda,
7878
):
7979
r = r.copy()
80+
if target is not None:
81+
r["target"] = target
8082
r.update(more)
8183
if use_scda:
8284
_patch_scda(date, r)
83-
if target is not None:
84-
r["target"] = target
8585
requests.append(r)
8686

8787
return requests

0 commit comments

Comments
 (0)