-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
tests for apply_dimension
are invalid
#213
Comments
A common use case is a combination of Sample tests for quantiles are here: https://github.com/Open-EO/openeo-test-suite/blob/main/src/openeo_test_suite/tests/workflows/test_apply_dimension.py |
You can use mean and other reducers, you just need to convert the output to an array again using e.g. array_create. You can't use them standalone though, indeed. I'm also working on example tests here: https://github.com/Open-EO/openeo-processes/blob/add-tests/tests/apply_dimension.json5 |
added new tests for quantiles, interpolate, modify and filter: https://github.com/Open-EO/openeo-processes-dask/blob/main/tests/test_apply.py |
Thanks @ValentinaHutter, I will have a look and test them! |
From the apply_dimension definition:
Currently, the internal tests are using processes like
add
,mean
andorder
.The
add
andmean
processes can't be used since they do not return an array of values but a single number.The
order
process should be ok, since it returns an array. However, I can't really use it in a normal process graph so probably the test is not testing it correctly.Returned error for the above example:
ValueError: order with nodata=None is not supported for arrays with more than one dimension, as this would result in sparse multi-dimensional arrays.
So I can try to set the nodata:
error:
The text was updated successfully, but these errors were encountered: