Skip to content

Commit

Permalink
Fix cyclic imports (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
HansKallekleiv authored Sep 30, 2019
1 parent b7aca88 commit 4914d92
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
from webviz_config.containers import WebvizContainer
from webviz_config.common_cache import cache

from ..datainput import (
get_time_series_data,
get_time_series_statistics,
get_time_series_delta_ens,
get_time_series_delta_ens_stats,
)

# =============================================================================
# Container
# =============================================================================
Expand Down
13 changes: 12 additions & 1 deletion webviz_subsurface/datainput/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@
from ._intersect import load_surface, get_wfence, get_hfence
from ._inplace_volumes import extract_volumes
from ._fmu_input import load_parameters, get_realizations, find_surfaces

from ._reservoir_simulation_timeseries import (
get_time_series_data,
get_time_series_statistics,
get_time_series_delta_ens,
load_ensemble_set,
get_time_series_delta_ens_stats,
)

__all__ = [
"scratch_ensemble",
Expand All @@ -17,6 +23,11 @@
"get_wfence",
"get_hfence",
"extract_volumes",
"load_ensemble_set",
"get_time_series_data",
"get_time_series_statistics",
"get_time_series_delta_ens",
"get_time_series_delta_ens_stats",
"load_parameters",
"get_realizations",
"find_surfaces",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
except ImportError: # fmu.ensemble is an optional dependency, e.g.
pass # for a portable webviz instance, it is never used.

from ..datainput import scratch_ensemble
from ._history_match import scratch_ensemble


@cache.memoize(timeout=cache.TIMEOUT)
Expand Down

0 comments on commit 4914d92

Please sign in to comment.