Skip to content

Feature/seas6 sprint - #290

Draft
MircoValentiniECMWF wants to merge 18 commits into
developfrom
feature/SEAS6-sprint
Draft

Feature/seas6 sprint#290
MircoValentiniECMWF wants to merge 18 commits into
developfrom
feature/SEAS6-sprint

Conversation

@MircoValentiniECMWF

@MircoValentiniECMWF MircoValentiniECMWF commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Description

A few bugfix/improvements to encode SEAS6 with new encoder

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.

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

@MircoValentiniECMWF
MircoValentiniECMWF requested review from dsarmany and tweska and removed request for tweska August 13, 2026 14:44
Comment on lines +429 to +456
@@ -429,10 +441,19 @@ void Statistics::emitStatistics(TemporalStatistics& ts, message::Peer source, me
Here());
}
// Squash means we don't map (already done in previous loop), but extend the timespan
const auto old_timspan = dm::parseEntry(dm::TIMESPAN, md);
timespan.set(ts.win().currPointInHours() - ts.win().creationPointInHours());
// std::cout << "Squashing statistics for " << dm::parseEntry(dm::PARAM, md).get() << " with operation "
// << opname << " :: creation=" << ts.cwin().creationPoint() << " :: current="
// << ts.win().currPointInHours() << " :: old_timespan=" << old_timspan.get().toHours()
// << " :: new_timespan=" << timespan.get().toHours() << std::endl;
dm::dumpEntry(dm::TIMESPAN, timespan, md);
}
else {
// std::cout << "Mapping statistics for " << dm::parseEntry(dm::PARAM, md).get() << " with operation "
// << opname << " :: CurrentLoop=" << currentLoop << std::endl;
/// @note: The mapping should not be applied for second loop (I don't know why this is happening here)
/// paramMapping_.applyMapping(md, opname, !opt_.disableStrictMapping());

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.

Please remove commented out code

Comment on lines +417 to +426
if (ts.periodName() == "month" && ts.cwin().creationPoint().date().day() != 1) {
std::cout << "Skipping first month because it is not a full month :: " << ts.cwin().creationPoint()
<< std::endl;
return; // Skip the first month if it is not a full month, as discussed with DGOV and scientists
}
if (ts.periodName() == "day" && ts.cwin().creationPoint().time().hours() != 1) {
std::cout << "Skipping first day because it is not a full day :: " << ts.cwin().creationPoint()
<< std::endl;
return; // Skip the first day if it is not a full day, as discussed with DGOV and scientists
}

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.

Please note that when a simulation ends in the middle of a month/day, the first half month/day will be emitted because it still starts at the start of a month/day.

endPoint also needs to be at the end of the month/day to avoid this.

@codecov-commenter

codecov-commenter commented Aug 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 18.23899% with 130 lines in your changes missing coverage. Please review.
✅ Project coverage is 33.52%. Comparing base (3395b02) to head (036c759).

Files with missing lines Patch % Lines
src/multio/action/encode-mtg2/fakeDoubleLoop.cc 12.50% 42 Missing ⚠️
src/multiom/tools/multiom_tools_utils_mod.F90 0.00% 28 Missing ⚠️
src/multio/action/print/Print.cc 34.48% 19 Missing ⚠️
src/multio/action/encode-mtg2/EncodeMtg2.cc 26.08% 17 Missing ⚠️
.../ifs2mars/output-manager/model_data2multio_mod.F90 0.00% 14 Missing ⚠️
src/multio/action/statistics-mtg2/Statistics.cc 40.00% 6 Missing ⚠️
src/multio/tools/utils/grib2MarsMisc.cc 0.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #290      +/-   ##
===========================================
+ Coverage    33.51%   33.52%   +0.01%     
===========================================
  Files          379      379              
  Lines        42648    42781     +133     
  Branches      1839     1851      +12     
===========================================
+ Hits         14292    14342      +50     
- Misses       28356    28439      +83     

☔ 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.

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.

3 participants