Skip to content

Commit

Permalink
Add retrieve
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Aug 16, 2023
1 parent 5ec4fbe commit ba36b21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions ai_models/inputs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def fields_sfc(self):
param=self.owner.param_sfc,
grid=self.owner.grid,
area=self.owner.area,
**self.owner.retrieve,
)
for date, time in self.owner.datetimes()
],
Expand Down
3 changes: 3 additions & 0 deletions ai_models/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def add(self, field):
class Model:
lagged = False
assets_extra_dir = None
retrieve = {} # Extra parameters for retrieve

def __init__(self, input, output, download_assets, **kwargs):
self.input = get_input(input, self, **kwargs)
Expand Down Expand Up @@ -252,6 +253,8 @@ def print_requests(self):
grid=self.grid,
area=self.area,
)
first.update(self.retrieve)

for date, time in self.datetimes(): # noqa F402
param, level = self.param_level_pl

Expand Down

0 comments on commit ba36b21

Please sign in to comment.