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: Add realization and iteration object metadata definitions #785

Conversation

equinor-ruaj
Copy link
Contributor

@equinor-ruaj equinor-ruaj commented Sep 19, 2024

Solving #774

Adding:

  • Definition for Iteration object IterationMetadata that requires
    • class = iteration
    • fmu.context.stage = case
    • fmu.iteration must exist
  • Definition for Realization object RealizationMetadata that requires
    • class = realization
    • fmu.context.stage = iteration
    • fmu.iteration and fmu.realization must exist

@equinor-ruaj equinor-ruaj force-pushed the realization-and-iteration-object-metadata branch 2 times, most recently from 9ad9383 to 01aee5c Compare September 19, 2024 07:43
@equinor-ruaj equinor-ruaj force-pushed the realization-and-iteration-object-metadata branch from 01aee5c to 13d5786 Compare September 19, 2024 08:18
@equinor-ruaj equinor-ruaj force-pushed the realization-and-iteration-object-metadata branch 2 times, most recently from 75d44d2 to 81b2d3a Compare September 19, 2024 08:31
@equinor-ruaj equinor-ruaj force-pushed the realization-and-iteration-object-metadata branch from 81b2d3a to ae2063c Compare September 19, 2024 09:40
Copy link
Collaborator

@mferrera mferrera left a comment

Choose a reason for hiding this comment

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

Not much to add beyond what @tnatt has covered. I worry that FMUIteration being fmu and not fmu.iteration reads a bit confusingly but cannot think of any improvements over it that still align with the way we've named other things.

I think it will be good to go when FMURealization.context is settled

src/fmu/dataio/_model/fields.py Outdated Show resolved Hide resolved
@equinor-ruaj equinor-ruaj force-pushed the realization-and-iteration-object-metadata branch from 1f742c1 to a565fa0 Compare September 20, 2024 06:36
@equinor-ruaj equinor-ruaj force-pushed the realization-and-iteration-object-metadata branch from 78cfdae to 369994a Compare September 20, 2024 06:41
Copy link
Collaborator

@tnatt tnatt left a comment

Choose a reason for hiding this comment

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

This looks good to me now 🚀 Thanks for taking on the issue!
Just remove the ssdl block from the example then it is good to go IMO

@equinor-ruaj equinor-ruaj force-pushed the realization-and-iteration-object-metadata branch from 5e90fd6 to 821be9e Compare September 20, 2024 08:03
@equinor-ruaj equinor-ruaj merged commit 77e85cb into equinor:main Sep 20, 2024
13 checks passed
@equinor-ruaj equinor-ruaj deleted the realization-and-iteration-object-metadata branch September 20, 2024 09:32
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.

4 participants