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):