Skip to content

Commit

Permalink
allow user to select expver
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Dec 21, 2024
1 parent 1187d78 commit 72eb4d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/anemoi/inference/inputs/mars.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ def retrieve(self, variables, dates):
if not requests:
raise ValueError("No requests for %s (%s)" % (variables, dates))

return retrieve(requests, self.checkpoint.grid, self.checkpoint.area, expver="0001", **self.kwargs)
kwargs = self.kwargs.copy()
kwargs.setdefault("expver", "0001")

return retrieve(requests, self.checkpoint.grid, self.checkpoint.area, **kwargs)

def template(self, variable, date, **kwargs):
return self.retrieve([variable], [date])[0]
Expand Down

0 comments on commit 72eb4d5

Please sign in to comment.