Skip to content

Commit

Permalink
Added request info for ML
Browse files Browse the repository at this point in the history
  • Loading branch information
mchantry committed Jul 28, 2024
1 parent 590e438 commit dfe47ef
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 dfe47ef

Please sign in to comment.