Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apply_neighborhood does not handle overlap as optional argument #235

Open
kvantricht opened this issue Nov 2, 2023 · 1 comment
Open
Labels

Comments

@kvantricht
Copy link

While the apply_neighborhood process should have overlap as an optional argument, it is implemented as a required argument here.

This leads to the following error when overlap is not provided in the python client:

File "/opt/venv/lib64/python3.8/site-packages/openeo_driver/ProcessGraphDeserializer.py", line 1522, in apply_process
    return process_function(args=ProcessArgs(args, process_id=process_id), env=env)
  File "/opt/venv/lib64/python3.8/site-packages/openeo_driver/ProcessGraphDeserializer.py", line 692, in apply_neighborhood
    return data_cube.apply_neighborhood(process=process, size=size, overlap=overlap, env=env, context=context)
  File "/opt/venv/lib64/python3.8/site-packages/openeo_driver/dry_run.py", line 702, in apply_neighborhood
    overlap_dict = {e['dimension']: e for e in overlap}
TypeError: 'NoneType' object is not iterable
@soxofaan soxofaan added the bug label Nov 2, 2023
@soxofaan
Copy link
Member

soxofaan commented Nov 2, 2023

current workaround is to provide an empty list []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants