From 1482719becb3e2ab8836c280ba283acfa99408ce Mon Sep 17 00:00:00 2001 From: Baudouin Raoult Date: Thu, 5 Oct 2023 17:13:32 +0100 Subject: [PATCH] hindcasts --- ai_models/__init__.py | 2 +- ai_models/model.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ai_models/__init__.py b/ai_models/__init__.py index 970b767..2f45bb4 100644 --- a/ai_models/__init__.py +++ b/ai_models/__init__.py @@ -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" diff --git a/ai_models/model.py b/ai_models/model.py index 1796d96..7591c90 100644 --- a/ai_models/model.py +++ b/ai_models/model.py @@ -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):