Skip to content

Revision of Cuiman opener API - #252

Merged
forman merged 20 commits into
mainfrom
forman/243-cuiman_opener_api_revision
Nov 24, 2026
Merged

forman merged 20 commits into
mainfrom
forman/243-cuiman_opener_api_revision

Conversation

@forman

@forman forman commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Revises Cuiman’s job-result reader API.

Closes #243

  • General terminology change from opening to reading a job result.
  • Replaced Client.open_job_result() and opener APIs with read_job_result() and reader equivalents.
  • Old open_job_result() is deprecated now.
  • Adds explicit reader IDs and typed return guarantees, including runtime validation of custom-reader results.
  • Accepts retrieved JobResults in both clients without polling or refetching, preserving output selection and available URL context across clients.
  • Enforces media-type precedence and engine overrides while retaining lazy dataset reads.

Updates documentation, examples, notebooks, and release notes. Representation conversions remain deferred.

EDIT from 11.11.2026

  • Breaking: replaces open_job_result() and opener APIs with read_job_result() and reader equivalents, without compatibility aliases.

Checklist (strike out non-applicable):

  • Changes documented in CHANGES.md
  • Related issue exists and is referred to in the PR description and CHANGES.md
  • Added docstrings and API docs for any new/modified user-facing classes and functions
  • Changes/features documented in docs/*
  • Unit-tests adapted/added for changes/features
  • Test coverage remains or increases (target 100%)

…ustom readers; Enforced media-type precedence and engine overrides; Preserved lazy dataset reads and added cleanup for rejected results; Deferred conversions with a TODO.
@forman forman self-assigned this Nov 5, 2026
@codecov

codecov Bot commented Nov 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

…solve relative STAC references, redirect handling, and the per-transport identity limits.
…eferences. Associations work across transports and survive source-client closure until the exact result object is collected.
…returns, reader options, and available URL context without polling or result-document refetches.
@forman
forman marked this pull request as ready for review November 9, 2026 13:29

@TejasMorbagal TejasMorbagal left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

My understanding: image/tiff; application=geotiff is matched as image/tiff, and ImageReader is tried before xarray, so GeoTIFF/COG outputs come back as plain Pillow images without georeferencing. Now that reader_id exists, maybe the reader guide could include a line like "pass reader_id="xarray" or data_type=xr.Dataset for georeferenced rasters"?

Comment thread cuiman/src/cuiman/api/reader/context.py Resolved
@forman

forman commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator Author

My understanding: image/tiff; application=geotiff is matched as image/tiff, and ImageReader is tried before xarray, so GeoTIFF/COG outputs come back as plain Pillow images without georeferencing. Now that reader_id exists, maybe the reader guide could include a line like "pass reader_id="xarray" or data_type=xr.Dataset for georeferenced rasters"?

I clarified GeoTIFF reader selection and raster backend requirements.

@forman
forman requested a review from TejasMorbagal November 19, 2026 13:59

@pont-us pont-us left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

See comments

Comment thread docs/cuiman/cli.md Resolved
Comment thread docs/cuiman/configuration.md Resolved
Comment thread cuiman/src/cuiman/api/reader/reader.py Resolved
@forman
forman merged commit 864abe8 into main Nov 24, 2026
1 check failed
@forman
forman deleted the forman/243-cuiman_opener_api_revision branch November 24, 2026 07:41
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.

Cuiman opener framework revision

3 participants