Skip to content

[codex] add DataCube inspect helper#906

Open
therealclvn wants to merge 3 commits into
Open-EO:masterfrom
therealclvn:codex/datacube-inspect-helper
Open

[codex] add DataCube inspect helper#906
therealclvn wants to merge 3 commits into
Open-EO:masterfrom
therealclvn:codex/datacube-inspect-helper

Conversation

@therealclvn

Copy link
Copy Markdown

Closes #795.

What changed

  • Added DataCube.inspect(message=..., code=..., level=...) as a convenience wrapper around the openEO inspect process.
  • The helper keeps returning a DataCube, so existing job/download/execute convenience methods remain available.
  • Added process graph tests for both cube.inspect() and cube.inspect(...) with log fields.

Why

Users currently have to call cube.process("inspect", data=cube) or use connection.datacube_from_process(...) for this debugging process. A direct cube.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' -q
  • python -m pytest tests/rest/datacube/test_datacube100.py -q
  • python -m compileall openeo/rest/datacube.py tests/rest/datacube/test_datacube100.py
  • git diff --check

@therealclvn therealclvn force-pushed the codex/datacube-inspect-helper branch from 36d16fe to 288fb6f Compare July 3, 2026 12:24
@therealclvn therealclvn force-pushed the codex/datacube-inspect-helper branch from 288fb6f to 436cf79 Compare July 3, 2026 12:30
@therealclvn therealclvn marked this pull request as ready for review July 3, 2026 12:46

@soxofaan soxofaan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for contributing!

some notes for further finetuning.

can you also add a changelog entry?

Comment thread tests/rest/datacube/test_datacube100.py Outdated
Comment thread openeo/rest/datacube.py
Comment thread CHANGELOG.md Outdated

### Added

- Add `DataCube.inspect()` helper for the openEO `inspect` process. ([#795](https://github.com/Open-EO/openeo-python-client/issues/795))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

append to the bottom of the item list

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved it to the bottom of the Added list in 73621c0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Easy way to invoke 'inspect' in datacube

2 participants