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 24, 2023
1 parent 1b1bb17 commit eb81a1e
Showing 1 changed file with 2 additions and 5 deletions.
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 eb81a1e

Please sign in to comment.