Skip to content

Commit

Permalink
array_labels: Allow normal arrays to be passed for which the proces…
Browse files Browse the repository at this point in the history
…s returns the indices. #243 (#290)
  • Loading branch information
m-mohr authored Oct 25, 2021
1 parent 6ec1848 commit 73073e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `predict_curve`
- `run_udf`: Exception `InvalidRuntime` added

### Changed

- `array_labels`: Allow normal arrays to be passed for which the process returns the indices. [#243](https://github.com/Open-EO/openeo-processes/issues/243)

### Removed

- Removed the explict schema for `raster-cube` in the `data` parameters and return values of `run_udf` and `run_udf_externally`. It's still possible to pass raster-cubes via the "any" data type, but it's discouraged due to scalability issues. [#285](https://github.com/Open-EO/openeo-processes/issues/285)
Expand Down
12 changes: 4 additions & 8 deletions array_labels.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
{
"id": "array_labels",
"summary": "Get the labels for an array",
"description": "Gives all labels for a labeled array. The labels have the same order as in the array.",
"description": "Gives all labels for a labeled array or gives all indices for an array without labels. If the array is not labeled, an array with the zero-based indices is returned. The labels or indices have the same order as in the array.",
"categories": [
"arrays"
],
"parameters": [
{
"name": "data",
"description": "An array with labels.",
"description": "An array.",
"schema": {
"type": "array",
"subtype": "labeled-array",
"items": {
"description": "Any data type."
}
"type": "array"
}
}
],
"returns": {
"description": "The labels as an array.",
"description": "The labels or indices as array.",
"schema": {
"type": "array",
"items": {
Expand Down

0 comments on commit 73073e7

Please sign in to comment.