Skip to content

Conversation

@jorgenherje
Copy link
Collaborator

@jorgenherje jorgenherje commented Feb 8, 2022

Calculate delta relative to date within ensemble for SimulationTimeSeries-plugin


Contributor checklist

  • Selectable dates in dropdown - union of dates from all EnsembleSummaryProvider's in provider set
  • Calculate vector data in dataframes relative to selected date - if date does not exist -> return empty df
  • Calculate statistics afterwards, i.e. "resetting" the statistics calculation!
  • Assume set of realizations to exist for each date in an ensemble, i.e. all realizations exist for all dates in an ensemble. Will need updated provider-interface.

NOTE:

- 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
Add unit test for refactored simulation_vector_description() method in
reservoir_simulation.py
Adapted to utilize VectorDefinitions from webviz-subsurface-components
Python-API
Correct changelog - "Added" and "Changed" info

Fix typo
- 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.
Testing improved implementation of relative to date calculation
- Improved calculation methods
- Created new implementations of calculation, and testing with timers.
- Moved methods into utils-folder
- Set calculation method for data relative to date: Assuming
set of realizatios equal on each date for an ensemble - providers
are to be updated!
- Add unit tests
- Clean up code
- Add relative date selection to user download data callback
@jorgenherje jorgenherje added enhancement 🚀 New feature or request CeeSol Task owned by Ceetron Solutions labels Feb 8, 2022
@jorgenherje jorgenherje self-assigned this Feb 8, 2022
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.

A couple of small comments, otherwise LGTM! 👏 🚀

@anders-kiaer anders-kiaer changed the title Delta relative to date within ensemble SimulationTimeSeries Delta relative to date within ensemble SimulationTimeSeries Feb 10, 2022
@jorgenherje jorgenherje merged commit 9609bb0 into equinor:master Feb 11, 2022
VincentNevermore pushed a commit to VincentNevermore/webviz-subsurface that referenced this pull request Jul 19, 2022
equinor#951)

* Optional property to specify a colormap function that will override the colormap.

* Added storybook example.

* Code comment fix.
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