Skip to content

Commit 11d8f2e

Browse files
committed
passing tests with accumulation
1 parent 4a11c5a commit 11d8f2e

File tree

3 files changed

+4
-33
lines changed

3 files changed

+4
-33
lines changed

src/anemoi/datasets/create/sources/accumulate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ def compute(self, field: Any, values: NDArray) -> None:
148148
interval = self.interval_coll.find_matching_interval(field)
149149

150150
if not interval:
151+
print('no interval matching')
151152
return
152153

153154
# each field must be seen once

tests/create/accumulation.yaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

tests/create/recentre.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ common:
1616
sfc: &sfc
1717
<<: *global
1818
levtype: sfc
19-
# param: [2t]
19+
#param: [2t]
2020
param: [10u, 10v, 2d, 2t, lsm, msl, sdor, skt, slor, sp, tcw, z]
2121
acc: &acc
2222
<<: *global
2323
levtype: sfc
2424
#param: [tp]
25-
param: [cp, tp]
25+
param: [cp,tp]
2626
pl: &pl
2727
<<: *global
2828
levtype: pl
@@ -34,7 +34,7 @@ common:
3434
ensembles: &ensembles
3535
stream: enda
3636
type: an
37-
number: [1, 2, 4]
37+
number: [1,2,4]
3838
# number: [1, 2, 3, 4, 5, 6, 7, 8, 9]
3939
centre: &centre
4040
stream: oper

0 commit comments

Comments
 (0)