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

User defined vector definition in SimulationTimeSeries plugin #940

Conversation

jorgenherje
Copy link
Collaborator

@jorgenherje jorgenherje commented Jan 27, 2022

Add user defined vector definitions for SimulationTimeSeries- plugin


  • Add configurable user defined vector definitions for plugin
  • Rename AVG_ and INVTL_ to PER_DAY_ and PER_INTVL_, respectively. For vector it is calculated from
    • NOTE: Does not replace T-suffix with R-suffix for PER_DAY_-vector
    • Previously WOPT gave AVG_WOPR and INTVL_WOPT. Not it gives PER_DAY_WOPT and PER_INTVL_WOPT
  • Remove webviz_subsurface/_abbreviations/abbreviation_data/reservoir_simulation_vectors.json and retrieve VectorDefinitions using new in Python-API for webviz-subsurface-components.

NOTE:

Resolves:

Dependent on:

- Use naming "VectorDefinition"
- Adjust to "AVG_" -> "PER_DAY_" and "INTVL_" -> "PER_INTVL_"
- Update unit tests according to "PER_DAY_" and "PER_INTVL_" notation
- Bug fix (missing well name in plot title)
- Refactor methods
@jorgenherje jorgenherje added enhancement 🚀 New feature or request CeeSol Task owned by Ceetron Solutions labels Jan 27, 2022
@jorgenherje jorgenherje self-assigned this Jan 27, 2022
Add unit test for refactored simulation_vector_description() method in
reservoir_simulation.py
Adapted to utilize VectorDefinitions from webviz-subsurface-components
Python-API
@jorgenherje jorgenherje marked this pull request as ready for review January 28, 2022 12:36
Correct changelog - "Added" and "Changed" info

Fix typo
@jorgenherje jorgenherje force-pushed the EQ_698-user-defined-vector-definition branch from e62008c to e515856 Compare January 28, 2022 14:01
- When downloading statistics, .loc  gave SettingWithCopyWarning warning.
- Remove usage of .loc as chained index is not needed: ["DATE"] instead of
[("DATE", "")].
- Make copy as download is not performance critical and statistics df
contains less data.
Copy link
Collaborator

@anders-kiaer anders-kiaer left a comment

Choose a reason for hiding this comment

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

Good work! Only a couple of minor comments from my side. I like the new tests!

CHANGELOG.md Show resolved Hide resolved
webviz_subsurface/_utils/vector_selector.py Outdated Show resolved Hide resolved
@jorgenherje jorgenherje merged commit 106c5c9 into equinor:master Feb 9, 2022
@anders-kiaer anders-kiaer deleted the EQ_698-user-defined-vector-definition branch May 25, 2022 07:23
VincentNevermore pushed a commit to VincentNevermore/webviz-subsurface that referenced this pull request Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CeeSol Task owned by Ceetron Solutions enhancement 🚀 New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants