-
Notifications
You must be signed in to change notification settings - Fork 29
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
Enables production data from CSV file and fixes failing probability distribution test #425
Enables production data from CSV file and fixes failing probability distribution test #425
Conversation
""" | ||
Function to read production data for all producers and injectors from a CSV file. | ||
|
||
Returns: |
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.
Now the function will return the columns present in the csv file (if e.g. WGPR is not in the csv file it will not be returned with NaN's as I think it will in from_flow.py). I'm not sure if the code needs all vectors, so we may not need NaN's, but there should the docstring should be consistent with the code.
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.
I don't know if I understand the problem or how to solve it. Are you saying that we should check if all supported summary vectors are present in the CSV file? If so, is there a list of all supported summary vectors anywhere in the code?
Previous CI test failed because configuration files from https://github.com/equinor/flownet-testdata must be updated (new position of observation vectors entry, PR equinor/flownet-testdata#52). Testdata branch has been changed to verify CI before merging |
All CI tests have passed when using the branch of equinor/flownet-testdata#52 - that PR can be merged safely. Next commit of this PR #425 reverts CI back to equinor/master branch, see below |
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.
LGTM
Enables production data to be loaded from CSV file and fixes failing probability distribution test
Contributor checklist
CSVData
as an alternative toFlowData
.CHANGELOG.md
.config_parser
for new position of observationvectors
entry in configuration file.CHANGELOG.md
.