From 92c3d92dea739da57b21a285266d8748ef01ab7e Mon Sep 17 00:00:00 2001 From: Florian Pinault Date: Fri, 10 May 2024 12:47:38 +0000 Subject: [PATCH 1/2] fix test --- src/anemoi/datasets/create/__init__.py | 8 ++++---- tests/create/test_create.py | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/anemoi/datasets/create/__init__.py b/src/anemoi/datasets/create/__init__.py index dbaacc7f..b2db2ad7 100644 --- a/src/anemoi/datasets/create/__init__.py +++ b/src/anemoi/datasets/create/__init__.py @@ -150,10 +150,10 @@ def create(self): self.additions() self.cleanup() - def additions(self): - self.init_additions() - self.run_additions() - self.finalise_additions() + def additions(self, delta=[1, 3, 6, 12, 24]): + self.init_additions(delta=delta) + self.run_additions(delta=delta) + self.finalise_additions(delta=delta) def _cache_context(self): from .utils import cache_context diff --git a/tests/create/test_create.py b/tests/create/test_create.py index a2ec2f15..7edb68f8 100755 --- a/tests/create/test_create.py +++ b/tests/create/test_create.py @@ -217,7 +217,11 @@ def test_run(name): # cache=None is using the default cache c = Creator(output, config=config, cache=None, overwrite=True) - c.create() + c.init() + c.load() + c.finalise() + c.additions(delta=[1, 3, 6, 12]) + c.cleanup() comparer = Comparer(name, output_path=output) comparer.compare() From 2d529e46dc069227d67c7f45ecebc41087a8f3f9 Mon Sep 17 00:00:00 2001 From: Florian Pinault Date: Mon, 13 May 2024 08:39:28 +0000 Subject: [PATCH 2/2] forcing zarr to <= 2.17.0 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 399c0c7a..602aed90 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,7 @@ classifiers = [ dependencies = [ "anemoi-utils[provenance]>=0.1.7", - "zarr", + "zarr<=2.17.0", "pyyaml", "numpy", "tqdm",