Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a passthrough option to the statistic action #61

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

stefaniereuter
Copy link
Contributor

Creating a draft PR for the first statistic change option that we discussed. Draft because I would like to add a test but would like to start discussions already as there are a few points that probably need it:

Foremost the position, where to pass on the initial data.

@codecov-commenter
Copy link

codecov-commenter commented Mar 11, 2025

Codecov Report

Attention: Patch coverage is 72.72727% with 3 lines in your changes missing coverage. Please review.

Project coverage is 53.08%. Comparing base (8712a46) to head (4358bf5).

Files with missing lines Patch % Lines
src/multio/action/statistics/Statistics.cc 40.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #61      +/-   ##
===========================================
+ Coverage    53.06%   53.08%   +0.01%     
===========================================
  Files          217      217              
  Lines        14644    14655      +11     
  Branches      1213     1213              
===========================================
+ Hits          7771     7779       +8     
- Misses        6873     6876       +3     

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

void StatisticsOptions::parseInitialDataPassThrough(const eckit::LocalConfiguration& cfg) {
//This option needs to be set if we have two statistic actions in a plan. Then the second statistic action also needs the initial data to create the statistic window correctly.
//Therefore the first action needs to have this option set to true.
initDataPassTrough_ = cfg.getBool("initial-data-passed-through", false);
Copy link
Contributor

Choose a reason for hiding this comment

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

should the option really be named ...-passed-through or ...-pass-through

// AND the model sends initial data AND the internal tracker if any message has been directly passed through is still false the message is passed through to the next action
// TODO check if this is a good position for this check. It looks like the next chekc would filter this message out anyway.
//std::cout<<"STEBA opt_.solver_send_initial_condition() " << opt_.solver_send_initial_condition() << " opt_.initialDataPassThrough() " << opt_.initialDataPassThrough() <<" !initialDataAlreadyPassedThrough_ " << !initialDataAlreadyPassedThrough_ << std::endl;
if(opt_.solver_send_initial_condition() && opt_.initialDataPassThrough() && !initialDataAlreadyPassedThrough_) {
Copy link
Contributor

Choose a reason for hiding this comment

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

So this assumes - without checking the metadata - that the
user properly configured the action to what the model is sending.

Is it possible to assert some things? I.e. a pass through message has step=0 ?

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