-
Notifications
You must be signed in to change notification settings - Fork 39
Add wildcard expansion of wlist wells in compdat #562
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
base: master
Are you sure you want to change the base?
Conversation
39a409b to
5253858
Compare
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.
Pull Request Overview
This PR implements wildcard expansion for well names in WLIST when processing COMPDAT keywords. The changes enable WLIST entries containing wildcard patterns (like "*OP") to be expanded to actual well names found in the COMPDAT data at the corresponding date.
- Adds wildcard expansion functionality to WLIST processing by matching patterns against wells defined in COMPDAT
- Refactors WLIST expansion into separate functions for wildcard expansion and action expansion
- Updates function signatures to pass COMPDAT data to WLIST expansion functions
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/res2df/compdat.py | Implements wildcard expansion logic and refactors WLIST expansion functions |
| tests/test_wlist.py | Updates test to use the new function name for WLIST action expansion |
| tests/test_welopen.py | Adds test case for wildcard expansion in WELOPEN with WLIST |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Pull Request Overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (1)
src/res2df/compdat.py:1
- Multiple spelling errors: 'wilcard' should be 'wildcard', 'charachters' should be 'characters' (appears twice).
"""Parser and dataframe generator for the keywords:
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
258a13e to
3702907
Compare
3702907 to
53e01c7
Compare
|
In It is unclear to me if this was due to the functionality not being in place at the time, for instance via the |
|
89d14d7 indicates that there might be a reason not to process wildcards in WLIST parsing. |
Do you know what the commit message But there is an expansion of wildcards in welopen_df, only it happens before wells from wlist_df is inserted into welopen_df. So maybe if you do the wildcards expansion of welopen afterwards it would work, but then I do not see why you would not do it directly in wlist_df. Probably something I am missing here. |
|
There is a comment in the commit mentioned above: I don't remember details here, but if you are parsing the entire deck when doing this, and thus maintain the state of which wells are currently defined, it could work. |
No description provided.