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

Improve handling of warning when missing content #380

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

jcrivenaes
Copy link
Collaborator

Address issue #379

The handling of content is moved to _object_data_provider, and also check that the fmu_context is not "case"

eobj = ExportData(config=globalconfig1)
mymeta = eobj.generate_metadata(regsurf)

assert mymeta["data"]["content"] == "unset"


def test_content_not_given_case(globalconfig1, regsurf):
Copy link
Member

Choose a reason for hiding this comment

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

We can revert to this at a later stage, but it's somewhat confusing with the term "case" as it will sometimes mean that we are creating case metadata (class: case) and sometimes that we are exporting data in a case context. Could possibly be confusing for new readers at some point...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point; have fixed this now

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.

I think this looks good.

Address issue equinor#379

The handling of content is moved to _object_data_provider, and also
check that warning is not issued when merging preprocessed data.
@jcrivenaes jcrivenaes merged commit 4887ca8 into equinor:main Oct 24, 2023
8 checks passed
@jcrivenaes jcrivenaes deleted the track-missing-content branch October 24, 2023 09:03
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