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 required volume calculations #906

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

tnatt
Copy link
Collaborator

@tnatt tnatt commented Dec 9, 2024

PR that sets BULK, PORV, HCPV as required in addition to and STOIIP/GIIP depending on what fluid has been selected.
It is done by validating the final table before export.

Closes #900

@tnatt tnatt self-assigned this Dec 9, 2024
@tnatt tnatt marked this pull request as draft December 10, 2024 08:28
@tnatt tnatt force-pushed the require_volumetrics_columns branch 2 times, most recently from 8af3f5f to 07018d3 Compare December 15, 2024 13:54
@tnatt tnatt marked this pull request as ready for review December 15, 2024 13:58
@tnatt tnatt force-pushed the require_volumetrics_columns branch 2 times, most recently from 8b0772c to 11a51b0 Compare December 15, 2024 14:08
@tnatt
Copy link
Collaborator Author

tnatt commented Dec 15, 2024

Some of the checks here can probably be performed using the product schema instead as stated #896. But we can investigate how to best do it once #894 is complete.

@tnatt tnatt force-pushed the require_volumetrics_columns branch from 11a51b0 to b12e5c6 Compare December 15, 2024 16:58
Comment on lines +227 to +236
for col in ["BULK", "PORV", "HCPV"]:
if self._is_column_missing_in_table(col):
missing_calculations.append(col)

if has_oil and self._is_column_missing_in_table("STOIIP"):
missing_calculations.append("STOIIP")

if has_gas and self._is_column_missing_in_table("GIIP"):
missing_calculations.append("GIIP")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Would be nice to convert these strings to enums #920

@tnatt tnatt force-pushed the require_volumetrics_columns branch 2 times, most recently from 20901e3 to e82ce98 Compare December 16, 2024 11:14
@tnatt tnatt force-pushed the require_volumetrics_columns branch from e82ce98 to 4d81ae9 Compare December 16, 2024 11:26
@tnatt tnatt requested review from mferrera and jcrivenaes December 16, 2024 13:46
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.

Looks good 👍

@tnatt tnatt merged commit 0252737 into equinor:main Dec 16, 2024
15 checks passed
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.

Inplace volumes: Require some volumetric columns
3 participants