Skip to content

Fix scaling of missing values in encode-mtg2 action#248

Draft
tweska wants to merge 2 commits intodevelopfrom
fix/encode-mtg2-scaling
Draft

Fix scaling of missing values in encode-mtg2 action#248
tweska wants to merge 2 commits intodevelopfrom
fix/encode-mtg2-scaling

Conversation

@tweska
Copy link
Member

@tweska tweska commented Mar 13, 2026

This PR skips missing values in the scaling logic in the encode-mtg2 action to be consistent with the scale action.

🌈🌦️📖🚧 Documentation 🚧📖🌦️🌈
https://sites.ecmwf.int/docs/dev-section/multio/pull-requests/PR-248

Missing values should not be scaled
@tweska tweska requested review from HCookie and dsarmany March 13, 2026 14:50
@codecov-commenter
Copy link

codecov-commenter commented Mar 13, 2026

Codecov Report

❌ Patch coverage is 40.00000% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.80%. Comparing base (8c9be5f) to head (0e13736).

Files with missing lines Patch % Lines
src/multio/action/encode-mtg2/EncodeMtg2.cc 0.00% 7 Missing ⚠️
src/multio/api/c/multio_capi.cc 25.00% 6 Missing ⚠️
...ultio/tools/multio-replay-nemo-capi-partial-agg.cc 0.00% 3 Missing ⚠️
src/multio/tools/multio-replay-nemo-capi.cc 0.00% 1 Missing ⚠️
src/multio/tools/multio-replay-nemo-fapi.f90 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #248      +/-   ##
===========================================
- Coverage    55.81%   55.80%   -0.01%     
===========================================
  Files          325      325              
  Lines        21372    21373       +1     
  Branches      1692     1691       -1     
===========================================
- Hits         11928    11927       -1     
- Misses        9444     9446       +2     

☔ View full report in Codecov by Sentry.
📢 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.

HCookie
HCookie previously approved these changes Mar 13, 2026
Copy link
Member

@HCookie HCookie left a comment

Choose a reason for hiding this comment

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

Thanks, with this and a key update, works for me

eckit::mpi::setCommDefault("self");
job.execute(input, output);
eckit::mpi::setCommDefault(originalComm.name().c_str());
md.set<std::int64_t>("misc-globalSize", outData.size());
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a breaking API change for Fesom and Nemo and should be done very carefully because it does require changes to those codes again (and the last commits that we have done there was to introduce misc-)

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.

4 participants