Skip to content

Commit

Permalink
Merge pull request #52 from ecmwf-lab/bugfix/retrieve-request-ml
Browse files Browse the repository at this point in the history
Added request info for ML
  • Loading branch information
b8raoult authored Jul 29, 2024
2 parents 590e438 + dfe47ef commit af35dd8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/ai_models/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ def _requests_unfiltered(self):
for date, time in self.datetimes(): # noqa F402
param, level = self.param_level_pl

# PL
r = dict(
levtype="pl",
levelist=level,
Expand All @@ -390,6 +391,25 @@ def _requests_unfiltered(self):

result.append(dict(**r))

# ML
param, level = self.param_level_ml
r = dict(
levtype="ml",
levelist=level,
param=param,
date=date,
time=time,
)
r.update(first)
first = {}

r.update(self._requests_extra)

self.patch_retrieve_request(r)

result.append(dict(**r))

# SFC
r.update(
dict(
levtype="sfc",
Expand Down

0 comments on commit af35dd8

Please sign in to comment.