[codex] add DataCube inspect helper#906
Open
therealclvn wants to merge 3 commits into
Open
Conversation
36d16fe to
288fb6f
Compare
288fb6f to
436cf79
Compare
soxofaan
reviewed
Jul 3, 2026
soxofaan
left a comment
Member
There was a problem hiding this comment.
thanks for contributing!
some notes for further finetuning.
can you also add a changelog entry?
soxofaan
reviewed
Jul 3, 2026
|
|
||
| ### Added | ||
|
|
||
| - Add `DataCube.inspect()` helper for the openEO `inspect` process. ([#795](https://github.com/Open-EO/openeo-python-client/issues/795)) |
Member
There was a problem hiding this comment.
append to the bottom of the item list
Author
There was a problem hiding this comment.
Moved it to the bottom of the Added list in 73621c0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #795.
What changed
DataCube.inspect(message=..., code=..., level=...)as a convenience wrapper around the openEOinspectprocess.DataCube, so existing job/download/execute convenience methods remain available.cube.inspect()andcube.inspect(...)with log fields.Why
Users currently have to call
cube.process("inspect", data=cube)or useconnection.datacube_from_process(...)for this debugging process. A directcube.inspect()matches the expected DataCube method style and keeps the result in the DataCube API.Validation
python -m pytest tests/rest/datacube/test_datacube100.py -k 'custom_process or datacube_from_process or test_inspect' -qpython -m pytest tests/rest/datacube/test_datacube100.py -qpython -m compileall openeo/rest/datacube.py tests/rest/datacube/test_datacube100.pygit diff --check