-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add backwards compatibility for older portables using `ParameterAnaly…
…sis` and `PropertyStatistic` (#995) * add backwards compatibility for older portables * get run_mode from WEBVIZ_INSTANCE_INFO
- Loading branch information
Showing
6 changed files
with
163 additions
and
81 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
webviz_subsurface/plugins/_parameter_analysis/data_loaders/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import pathlib | ||
|
||
import pandas as pd | ||
from webviz_config.common_cache import CACHE | ||
from webviz_config.webviz_store import webvizstore | ||
|
||
|
||
@CACHE.memoize(timeout=CACHE.TIMEOUT) | ||
@webvizstore | ||
def read_csv(csv_file: pathlib.Path) -> pd.DataFrame: | ||
return pd.read_csv(csv_file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
webviz_subsurface/plugins/_property_statistics/data_loaders/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import pathlib | ||
|
||
import pandas as pd | ||
from webviz_config.common_cache import CACHE | ||
from webviz_config.webviz_store import webvizstore | ||
|
||
|
||
@CACHE.memoize(timeout=CACHE.TIMEOUT) | ||
@webvizstore | ||
def read_csv(csv_file: pathlib.Path) -> pd.DataFrame: | ||
return pd.read_csv(csv_file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters