Skip to content

Commit

Permalink
hindcasts
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Oct 5, 2023
1 parent ac8f9b5 commit 1482719
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ai_models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# granted to it by virtue of its status as an intergovernmental organisation
# nor does it submit to any jurisdiction.

__version__ = "0.2.7"
__version__ = "0.2.8"
5 changes: 5 additions & 0 deletions ai_models/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ def write(self, *args, **kwargs):
def collect_archive_requests(self, written):
if self.archive_requests:
handle, path = written
if self.hindcast_reference_date:
# The clone is necessary because the handle
# does not return always return recently set keys
handle = handle.clone()

self.archiving[path].add(handle.as_mars())

def finalise(self):
Expand Down

0 comments on commit 1482719

Please sign in to comment.