Skip to content

Add MTG2Encoder key - #529

Merged
joobog merged 3 commits into
developfrom
feature/mtg2_encoding_hint
Aug 21, 2026
Merged

Add MTG2Encoder key#529
joobog merged 3 commits into
developfrom
feature/mtg2_encoding_hint

Conversation

@joobog

@joobog joobog commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Description

This pull request introduces a new mechanism to indicate when the MTG2 encoder should be used, specifically targeting internal use at ECMWF. The main change is the addition of the MTG2Encoder field, which is conditionally set based on the centre value.

Contributor Declaration

By opening this pull request, I affirm the following:

  • All authors agree to the Contributor License Agreement.
  • The code follows the project's coding standards.
  • I have performed self-review and added comments where needed.
  • I have added or updated tests to verify that my changes are effective and functional.
  • I have run all existing tests and confirmed they pass.

@joobog joobog added the approved-for-ci Approved to run CI on ECMWF machines label Aug 20, 2026
@codecov-commenter

codecov-commenter commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.22%. Comparing base (3514c2e) to head (b4e9a24).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #529   +/-   ##
========================================
  Coverage    88.22%   88.22%           
========================================
  Files          854      854           
  Lines        63549    63549           
  Branches     11290    11290           
========================================
  Hits         56067    56067           
  Misses        7482     7482           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread definitions/grib2/section.4.def Outdated
alias MTG2Encoder = MTG2Switch;
}
else {
transient MTG2Encoder = 0: read_only;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why not use a constant?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good point, thanks!

@joobog
joobog merged commit 8a997a7 into develop Aug 21, 2026
439 of 460 checks passed
@joobog
joobog deleted the feature/mtg2_encoding_hint branch August 21, 2026 09:03
mcocdawc added a commit that referenced this pull request Aug 22, 2026
The PR had gone mergeable=CONFLICTING, and GitHub does not deliver
pull_request events for a PR whose merge ref it cannot compute -- so eccodes
had run no CI at all since 2026-08-21 and was contributing nothing to the
rollout signal. This unblocks it.

develop landed the cross-repo orchestration independently (#530), so
.ci/manifest.toml and both generated cross-repo-trigger*.yml files existed on
both sides as add/add conflicts. Resolved to this branch's copies, which are
strictly ahead of develop's on all three -- they carry the `options` job-name
slot, the HPC leg container, and `ctest = true` -- then regenerated and
re-checked to confirm the resolution matches what the generator produces.

The only content the merge actually brings in is the MTG2Encoder key (#529).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014ZXmNdJJYqZkpBNTycoPdP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved-for-ci Approved to run CI on ECMWF machines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants