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: validate inplace volumes with Pydantic #934

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

mferrera
Copy link
Collaborator

@mferrera mferrera commented Dec 19, 2024

Resolves #896

Fixed a semi-bug with setting the dataframe FLUID column as well.

@mferrera mferrera marked this pull request as ready for review December 19, 2024 08:39
@mferrera mferrera requested a review from tnatt December 19, 2024 08:39
@mferrera mferrera self-assigned this Dec 19, 2024
@mferrera mferrera force-pushed the validate-invols-at-export branch from 8ed7dfd to e31d241 Compare December 19, 2024 08:51
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.

Nice 🙂

@@ -172,7 +173,7 @@ def _transform_and_add_fluid_column_to_table(
)

# add the fluid as column entry instead
fluid_table[_enums.InplaceVolumes.FLUID_COLUMN] = fluid
fluid_table[_enums.InplaceVolumes.FLUID_COLUMN.value] = fluid
Copy link
Collaborator

Choose a reason for hiding this comment

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

enums drive me crazy sometimes..

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Funny thing is that it worked just fine. Terrible thing is that it worked just fine 😅

@mferrera mferrera force-pushed the validate-invols-at-export branch from e31d241 to b3af680 Compare December 20, 2024 11:17
@mferrera mferrera merged commit 71f3616 into equinor:main Dec 20, 2024
15 checks passed
@mferrera mferrera deleted the validate-invols-at-export branch December 20, 2024 11:20
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.

Validate exported inplace volumes data at export
2 participants