From 774c73034c41f47c0e4f97cfbdb13fbe57081472 Mon Sep 17 00:00:00 2001 From: LSchueler <mostem@posteo.de> Date: Wed, 10 Nov 2021 16:58:03 +0100 Subject: [PATCH] Improve import situation --- gstools/variogram/variogram.py | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/gstools/variogram/variogram.py b/gstools/variogram/variogram.py index 77b9a2c2..7acce928 100644 --- a/gstools/variogram/variogram.py +++ b/gstools/variogram/variogram.py @@ -23,22 +23,13 @@ ) from gstools.variogram.binning import standard_bins -if config.USE_RUST: +if config.USE_RUST: # pragma: no cover # pylint: disable=E0401 - from gstools_core import ( - variogram_directional as directional, # pragma: no cover - ) - from gstools_core import ( - variogram_ma_structured as ma_structured, # pragma: no cover - ) - from gstools_core import ( - variogram_structured as structured, # pragma: no cover - ) - from gstools_core import ( - variogram_unstructured as unstructured, # pragma: no cover - ) + from gstools_core import variogram_directional as directional + from gstools_core import variogram_ma_structured as ma_structured + from gstools_core import variogram_structured as structured + from gstools_core import variogram_unstructured as unstructured else: - # pylint: disable=C0412 from gstools.variogram.estimator import ( directional, ma_structured,