Skip to content

Commit

Permalink
Keep non-log parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
asnyv committed May 26, 2023
1 parent 1b1bb17 commit acefef0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
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

0 comments on commit acefef0

Please sign in to comment.