Skip to content

Commit

Permalink
Add tests for aggregate_temporal_period, fix aggregate_temporal
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Dec 22, 2023
1 parent 15ddb20 commit 0e979e4
Show file tree
Hide file tree
Showing 3 changed files with 1,351 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This folder contains test cases for the openEO processes.
- [x] add_dimension
- [ ] aggregate_spatial*
- [x] aggregate_temporal
- [ ] aggregate_temporal_period*
- [x] aggregate_temporal_period
- [x] all
- [x] and
- [x] any
Expand Down
9 changes: 5 additions & 4 deletions tests/aggregate_temporal.json5
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
"absolute": {
"process_id": "absolute",
"arguments": {
"data": {
"x": {
"from_node": "mean"
}
},
Expand Down Expand Up @@ -359,7 +359,7 @@
[29.78, 61.46, 49.70, -80.62],
[3.40, 48.45, -62.93, 61.37],
[8.78, -50.03, 78.05, 65.77]
]
],
[
[NaN, NaN, NaN, NaN],
[NaN, NaN, NaN, NaN],
Expand All @@ -369,6 +369,7 @@
}
},
{
"level": "L3",
"required": [
"sum"
],
Expand All @@ -389,7 +390,7 @@
"from_parameter": "data"
},
"ignore_nodata": {
"from_pataeter": "context"
"from_parameter": "context"
}
},
"result": true
Expand Down Expand Up @@ -562,7 +563,7 @@
[NaN, NaN, NaN, NaN],
[NaN, NaN, NaN, NaN],
[NaN, NaN, NaN, NaN]
]
],
[
[-12.23, 44.91, 2.38, -64.25],
[1.05, 28.45, -3.11, 51.05],
Expand Down
Loading

0 comments on commit 0e979e4

Please sign in to comment.