Skip to content

Test custom job results#512

Open
EmileSonneveld wants to merge 6 commits into
masterfrom
test_custom_job_results
Open

Test custom job results#512
EmileSonneveld wants to merge 6 commits into
masterfrom
test_custom_job_results

Conversation

@EmileSonneveld

Copy link
Copy Markdown
Member

@copilot review

@EmileSonneveld

Copy link
Copy Markdown
Member Author

@copilot review

Comment thread openeo_driver/views.py
# Machine learning models.
return result_dict
bands = asset_metadata.get("bands")
bands = asset_metadata.get("bands") or asset_metadata.get("eo:bands")

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@soxofaan An issue for CWL here was that the results can be stac1.0, while the code assumed the was 1.1.
Would wrapping this or with TREAT_JOB_RESULTS_V100_LIKE_V110 make more sense?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

For example with

        bands = asset_metadata.get("bands")
        TREAT_JOB_RESULTS_V100_LIKE_V110 = smart_bool(os.environ.get("TREAT_JOB_RESULTS_V100_LIKE_V110", "0"))
        if not bands and stac11 and TREAT_JOB_RESULTS_V100_LIKE_V110:
            bands = asset_metadata.get("eo:bands")

@EmileSonneveld EmileSonneveld force-pushed the test_custom_job_results branch from 0a7bd1d to b6da14b Compare June 12, 2026 09:47
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.

1 participant