Skip to content

Commit 9421cbd

Browse files
committed
Merge branch 'develop'
2 parents a3dda3a + 2d529e4 commit 9421cbd

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ classifiers = [
4141

4242
dependencies = [
4343
"anemoi-utils[provenance]>=0.1.7",
44-
"zarr",
44+
"zarr<=2.17.0",
4545
"pyyaml",
4646
"numpy",
4747
"tqdm",

src/anemoi/datasets/create/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ def create(self):
150150
self.additions()
151151
self.cleanup()
152152

153-
def additions(self):
154-
self.init_additions()
155-
self.run_additions()
156-
self.finalise_additions()
153+
def additions(self, delta=[1, 3, 6, 12, 24]):
154+
self.init_additions(delta=delta)
155+
self.run_additions(delta=delta)
156+
self.finalise_additions(delta=delta)
157157

158158
def _cache_context(self):
159159
from .utils import cache_context

tests/create/test_create.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,11 @@ def test_run(name):
217217

218218
# cache=None is using the default cache
219219
c = Creator(output, config=config, cache=None, overwrite=True)
220-
c.create()
220+
c.init()
221+
c.load()
222+
c.finalise()
223+
c.additions(delta=[1, 3, 6, 12])
224+
c.cleanup()
221225

222226
comparer = Comparer(name, output_path=output)
223227
comparer.compare()

0 commit comments

Comments
 (0)