Skip to content

Commit

Permalink
exposed rft input files as arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Øyvind Lind-Johansen committed Jan 13, 2025
1 parent a8fdc13 commit a294de3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions webviz_subsurface/plugins/_rft_plotter/_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ class Ids(StrEnum):
def __init__(
self,
webviz_settings: WebvizSettings,
rft: Path = "share/results/tables/rft.csv",
rft_ert: Path = "share/results/tables/rft_ert.csv",
csvfile_rft: Path = None,
csvfile_rft_ert: Path = None,
ensembles: Optional[List[str]] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def __init__(
self,
webviz_settings: WebvizSettings,
ensembles: Optional[List[str]],
rft: Path = None,
rft_ert: Path = None,
formations: Path = None,
faultlines: Path = None,
obsdata: Path = None,
Expand Down Expand Up @@ -67,12 +69,12 @@ def __init__(

self.ertdatadf = create_csvfile_providerset_from_paths(
ens_paths,
"share/results/tables/rft_ert.csv",
rft_ert,
).get_aggregated_dataframe()

try:
self.simdf = create_csvfile_providerset_from_paths(
ens_paths, "share/results/tables/rft.csv"
ens_paths, rft
).get_aggregated_dataframe()

except ValueError as err:
Expand Down Expand Up @@ -210,7 +212,13 @@ def create_rft_and_param_pivot_table(
zone: str,
reals: List[int],
keep_all_rfts: bool,
) -> Tuple[Optional[pd.DataFrame], float, float, List[str], List[str],]:
) -> Tuple[
Optional[pd.DataFrame],
float,
float,
List[str],
List[str],
]:
"""This method merges rft observations and parameters.
The RFT observations are converted from long form (all simulated values
Expand Down

0 comments on commit a294de3

Please sign in to comment.