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

Correct dataio issues etc v2 #77

Merged
merged 1 commit into from
Jan 27, 2023

Conversation

jcrivenaes
Copy link
Collaborator

  • Fix a bug wrt dates when exporting to dataio
  • Improve use of ENV variables, with two choices.
  • Allow a local file setting for input.fmu_global_config.
  • Improve documentation

def _get_global_config(thisconfig):
"""Get the global config in different manners. Priority:

(1) A setting inside the setup file: input: fmu_global_config: will win if present
Copy link
Member

Choose a reason for hiding this comment

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

Would it make sense to change the order? I.e. first the explicit environment variable, then the more generic environment variable and lastly the (most generic) file? Don't know the answer.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was thinking through this, back and forth, and I think this is most logical. However, we need to revisit the order in fmu.dataio also.

Copy link
Member

@perolavsvendsen perolavsvendsen left a comment

Choose a reason for hiding this comment

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

Assume this is fine 👍🏻 Minor comments:

  • Order of config lookup. Now first file, then generic environment variable, then lastly explicit environment variable. Will it make sense to reverse this?
  • No tests for this lookup, e.g. if given a file, will it ignore the environment variable?

@jcrivenaes jcrivenaes merged commit cb95e14 into equinor:master Jan 27, 2023
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.

None yet

2 participants