From ca3c775a1dfc8ed656d17a1b0c5f0b0725f80da2 Mon Sep 17 00:00:00 2001 From: Eivind Jahren Date: Fri, 29 Jul 2022 10:02:56 +0200 Subject: [PATCH] Import MeasuredData through ert The ert import structure is going to change to conform to pep8's "modules should explicitly declare the names in their public API using the __all__ attribute. [...] Other modules must not rely on indirect access to such imported names unless they are an explicitly documented part of the containing module's API, such as os.path". --- semeio/workflows/correlated_observations_scaling/cos.py | 2 +- semeio/workflows/misfit_preprocessor/misfit_preprocessor.py | 2 +- .../workflows/spearman_correlation_job/spearman_correlation.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/semeio/workflows/correlated_observations_scaling/cos.py b/semeio/workflows/correlated_observations_scaling/cos.py index 2f0ae6cc5..0e241e0c4 100755 --- a/semeio/workflows/correlated_observations_scaling/cos.py +++ b/semeio/workflows/correlated_observations_scaling/cos.py @@ -4,7 +4,7 @@ import yaml import configsuite -from ert_data.measured import MeasuredData +from ert import MeasuredData from ert_shared.libres_facade import LibresFacade from ert_shared.plugins.plugin_manager import hook_implementation from semeio.communication import SemeioScript diff --git a/semeio/workflows/misfit_preprocessor/misfit_preprocessor.py b/semeio/workflows/misfit_preprocessor/misfit_preprocessor.py index e38d160ba..0a0c4396e 100644 --- a/semeio/workflows/misfit_preprocessor/misfit_preprocessor.py +++ b/semeio/workflows/misfit_preprocessor/misfit_preprocessor.py @@ -1,6 +1,6 @@ import yaml -from ert_data.measured import MeasuredData +from ert import MeasuredData from ert_shared.libres_facade import LibresFacade from ert_shared.plugins.plugin_manager import hook_implementation diff --git a/semeio/workflows/spearman_correlation_job/spearman_correlation.py b/semeio/workflows/spearman_correlation_job/spearman_correlation.py index 03b22419e..4234d4ae4 100755 --- a/semeio/workflows/spearman_correlation_job/spearman_correlation.py +++ b/semeio/workflows/spearman_correlation_job/spearman_correlation.py @@ -1,6 +1,6 @@ import argparse -from ert_data.measured import MeasuredData +from ert import MeasuredData from ert_shared.libres_facade import LibresFacade from ert_shared.plugins.plugin_manager import hook_implementation from semeio.communication import SemeioScript