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

Keep non-log parameters #1222

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- [#1217](https://github.com/equinor/webviz-subsurface/pull/1217) - New plugin `SimulationTimeSeriesOneByOne`, meant to replace the old `ReservoirSimulationTimeSeriesOneByOne`. Uses the `.arrow` summary provider and is implemented with WLF (Webviz Layout Framework).

### Fixed
- [#1222](https://github.com/equinor/webviz-subsurface/pull/1222) - Keep both non-logarithmic parameters.

## [0.2.19] - 2023-05-05

Expand Down
7 changes: 2 additions & 5 deletions webviz_subsurface/_models/parameter_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ def _prepare_data(
"""
Different data preparations on the parameters, before storing them as an attribute.
Option to drop parameters with constant values. Prefixes on parameters from GEN_KW
are removed, in addition parameters with LOG distribution will be kept while the
other is dropped.
are removed.
"""

# Remove parameters with only NaN (can happen for filtered dataframes)
Expand All @@ -111,9 +110,7 @@ def _prepare_data(

# Keep only LOG parameters
log_params = [param for param in self._dataframe if param.startswith("LOG10_")]
self._dataframe = self._dataframe.drop(
columns=[param.replace("LOG10_", "") for param in log_params]
)

self._dataframe = self._dataframe.rename(
columns={col: f"{col} (log)" for col in log_params}
)
Expand Down