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

Add comment about INCLUDE keyword for Pyaction and ACTIONX #4409

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lisajulia
Copy link
Contributor

@lisajulia lisajulia commented Jan 8, 2025

The PR OPM/opm-simulators#5848 depends on OPM/opm-tests#1278, so OPM/opm-tests#1278 should be merged first. This PR is technically independent, but should still be merged before OPM/opm-simulators#5848.

For the reference manual: With this, I've checked how the INCLUDE keyword can be used from a PyAction script. The path to the included files can be given relative to the location of the python script (as done in OPM/opm-tests#1278) by retrieving the location of the python script as script_location = os.path.dirname(os.path.abspath(__file__)) and using that or as an absolute path.
A pure relative path does not work here, also using variables from the DATA file does not work, since the info is not available at the spot where the Python Script is run.

@lisajulia
Copy link
Contributor Author

jenkins build this opm-simulators=5848 opm-tests=1278 please

@lisajulia lisajulia requested a review from blattms January 10, 2025 10:16
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.

2 participants