Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed May 13, 2024
2 parents a3dda3a + 2d529e4 commit 9421cbd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ classifiers = [

dependencies = [
"anemoi-utils[provenance]>=0.1.7",
"zarr",
"zarr<=2.17.0",
"pyyaml",
"numpy",
"tqdm",
Expand Down
8 changes: 4 additions & 4 deletions src/anemoi/datasets/create/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion tests/create/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9421cbd

Please sign in to comment.