-
Notifications
You must be signed in to change notification settings - Fork 16
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
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
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. 🚀 New features to boost your workflow:
|
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); |
There was a problem hiding this comment.
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_) { |
There was a problem hiding this comment.
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 ?
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.