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 Jan 3, 2024
1 parent 5fcca62 commit 8513cd3
Show file tree
Hide file tree
Showing 3 changed files with 1,353 additions and 8 deletions.
6 changes: 3 additions & 3 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ This folder contains test cases for the openEO processes.
- [x] absolute
- [x] add
- [x] add_dimension
- [ ] aggregate_spatial*
- [x] aggregate_temporal
- [ ] aggregate_temporal_period*
- [x] aggregate_temporal_period
- [x] all
- [x] and
- [x] any
Expand Down Expand Up @@ -148,8 +147,9 @@ We don't expect that we can provide meaningful test cases for these processes.
- vector_to_random_points (experimental)
- vector_to_regular_points (experimental)

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

- aggregate_spatial
- aggregate_spatial_window (experimental)
- anomaly
- apply_neighborhood
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 8513cd3

Please sign in to comment.