-
Notifications
You must be signed in to change notification settings - Fork 104
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
Move EclSum support from serializers to transformations #2613
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2613 +/- ##
==========================================
- Coverage 64.82% 64.82% -0.01%
==========================================
Files 648 648
Lines 54188 54188
Branches 4517 4517
==========================================
- Hits 35128 35127 -1
- Misses 17653 17655 +2
+ Partials 1407 1406 -1
Continue to review full report at Codecov.
|
b8ec2dd
to
a040e4c
Compare
Another mypy issues:
|
@@ -106,16 +102,13 @@ def add_step_outputs( | |||
step: StepBuilder, | |||
) -> None: | |||
for record_name, output in step_config.output.items(): | |||
transformation = _get_output_recordtransformation(output) |
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.
This might not be part of this PR, but shouldn't we also create LinkedOutput
class then?
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.
The outputs don't have the same kind of configurability as the inputs, so it isn't currently needed. The reason linked inputs exist, is due to the separate stages and ensemble configuration scheme, where the same input (record) can serve as inputs for multiple ensembles. This doesn't currently apply for outputs.
It's been fixed in 94d7347 it seems, so just rebase |
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.
Looks very good! Only had one small comment.
Eclipse binary output can now be "transformed" from its binary state into a NumericalRecordTree with nodes being the summary vector names. Summary vectors are extracted according to an explicit list.
Can I still load summary data from the command line after this pr? |
Very good point (although not sure if we were loading the summary data from command line before 🤔 )! Line 73 in c1f45fb
|
The command line dispatched stuff to the serialiser, so that should've worked before this pr. didn't test it though. |
According to the previous experience, this feature didn't work (ie. extracting particular keys). Moreover, decided not to have a command line option for summary data (at least for now). |
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.
Nice work and LGTM now! 🚀
Issue
Resolves #2121
Approach
Short description of the approach
Pre review checklist