Skip to content

Commit 4069c31

Browse files
committed
Add tests for aggregate_temporal_period, fix aggregate_temporal
1 parent 15ddb20 commit 4069c31

File tree

3 files changed

+1353
-8
lines changed

3 files changed

+1353
-8
lines changed

tests/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ This folder contains test cases for the openEO processes.
77
- [x] absolute
88
- [x] add
99
- [x] add_dimension
10-
- [ ] aggregate_spatial*
1110
- [x] aggregate_temporal
12-
- [ ] aggregate_temporal_period*
11+
- [x] aggregate_temporal_period
1312
- [x] all
1413
- [x] and
1514
- [x] any
@@ -148,8 +147,9 @@ We don't expect that we can provide meaningful test cases for these processes.
148147
- vector_to_random_points (experimental)
149148
- vector_to_regular_points (experimental)
150149

151-
The following processes are experimental or part of a higher profile (L3+), so the tests will hopefully evolve over time:
150+
The following processes are experimental, part of a higher profile (L3+), or use vector data cube, so the tests will hopefully evolve over time:
152151

152+
- aggregate_spatial
153153
- aggregate_spatial_window (experimental)
154154
- anomaly
155155
- apply_neighborhood

tests/aggregate_temporal.json5

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
"absolute": {
238238
"process_id": "absolute",
239239
"arguments": {
240-
"data": {
240+
"x": {
241241
"from_node": "mean"
242242
}
243243
},
@@ -359,7 +359,7 @@
359359
[29.78, 61.46, 49.70, -80.62],
360360
[3.40, 48.45, -62.93, 61.37],
361361
[8.78, -50.03, 78.05, 65.77]
362-
]
362+
],
363363
[
364364
[NaN, NaN, NaN, NaN],
365365
[NaN, NaN, NaN, NaN],
@@ -369,6 +369,7 @@
369369
}
370370
},
371371
{
372+
"level": "L3",
372373
"required": [
373374
"sum"
374375
],
@@ -389,7 +390,7 @@
389390
"from_parameter": "data"
390391
},
391392
"ignore_nodata": {
392-
"from_pataeter": "context"
393+
"from_parameter": "context"
393394
}
394395
},
395396
"result": true
@@ -562,7 +563,7 @@
562563
[NaN, NaN, NaN, NaN],
563564
[NaN, NaN, NaN, NaN],
564565
[NaN, NaN, NaN, NaN]
565-
]
566+
],
566567
[
567568
[-12.23, 44.91, 2.38, -64.25],
568569
[1.05, 28.45, -3.11, 51.05],

0 commit comments

Comments
 (0)