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

ENH: Apply ERT env variables in FMU runs #451

Merged
merged 4 commits into from
Feb 8, 2024

Conversation

jcrivenaes
Copy link
Collaborator

@jcrivenaes jcrivenaes commented Feb 5, 2024

This is a bigger PR where we go from parsing file paths in order to detect "running in FMU", to look for defined environment variables from ERT runs.

In doing so, some refactorisering is done, in particular for the _FmuProvider class (renamed to FmuProvider) to have a cleaner interface with the calling metadata.py module.

Resolves: #368

@jcrivenaes jcrivenaes marked this pull request as draft February 5, 2024 13:41
@jcrivenaes jcrivenaes force-pushed the apply-ert-env-variables branch 4 times, most recently from 946a499 to 7e76d36 Compare February 7, 2024 10:06
@jcrivenaes jcrivenaes marked this pull request as ready for review February 7, 2024 10:08
Copy link
Contributor

@janbjorge janbjorge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, my only comment is that i would have loved to see this split into two commits: One for the refactoring another for the new logic.

Also, please add a tag-prefix to the commit message.

@perolavsvendsen
Copy link
Member

#368

@jcrivenaes
Copy link
Collaborator Author

jcrivenaes commented Feb 8, 2024

Looks good to me, my only comment is that i would have loved to see this split into two commits: One for the refactoring another for the new logic.

I think that can be difficult to do (the two commits); but have split tests and examples + one change to pyproject.toml

Also, please add a tag-prefix to the commit message.

Will fix

This is a bigger PR where we go from parsing file paths in order
to detect "running in FMU", to look for defined environment variables
from ERT runs.

In doing so, some refactorisering is done, in particular for the
FmuProvider class to have a cleaner interface with the calling
metadata.py module.
The examples now fake ERT environment variables
@jcrivenaes jcrivenaes changed the title Apply ERT env variables in FMU runs ENH: Apply ERT env variables in FMU runs Feb 8, 2024
@jcrivenaes jcrivenaes merged commit e730e5b into equinor:main Feb 8, 2024
12 checks passed
@jcrivenaes jcrivenaes deleted the apply-ert-env-variables branch February 8, 2024 17:48
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.

Establish reading of information exposed by ERT
3 participants