From e60bb2fdcdf53c99709702a89a0d87ef44ac87c4 Mon Sep 17 00:00:00 2001 From: LSchueler Date: Mon, 8 Jul 2024 13:44:53 +0200 Subject: [PATCH] Disable warnings --- src/gstools/krige/base.py | 8 ++++---- src/gstools/variogram/variogram.py | 9 ++++++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/gstools/krige/base.py b/src/gstools/krige/base.py index 4f4ef78a..c8ffeee5 100755 --- a/src/gstools/krige/base.py +++ b/src/gstools/krige/base.py @@ -244,15 +244,15 @@ def __call__( if ( config.USE_GSTOOLS_CORE and config._GSTOOLS_CORE_AVAIL ): # pylint: disable=W0212 - self._calc_field_krige = ( - calc_field_krige_gsc # pylint: disable=E0606, W0201 + self._calc_field_krige = ( # pylint: disable=W0201 + calc_field_krige_gsc # pylint: disable=E0606 ) self._calc_field_krige_and_variance = ( # pylint: disable=W0201 calc_field_krige_and_variance_gsc # pylint: disable=E0606 ) else: - self._calc_field_krige = ( - calc_field_krige_c # pylint: disable=W0201 + self._calc_field_krige = ( # pylint: disable=W0201 + calc_field_krige_c ) self._calc_field_krige_and_variance = ( # pylint: disable=W0201 calc_field_krige_and_variance_c diff --git a/src/gstools/variogram/variogram.py b/src/gstools/variogram/variogram.py index f44d0656..fac50fb1 100644 --- a/src/gstools/variogram/variogram.py +++ b/src/gstools/variogram/variogram.py @@ -364,7 +364,8 @@ def vario_estimate( cython_estimator = _set_estimator(estimator) # run if ( - config.USE_GSTOOLS_CORE and config._GSTOOLS_CORE_AVAIL + config.USE_GSTOOLS_CORE + and config._GSTOOLS_CORE_AVAIL # pylint: disable=W0212 ): # pylint: disable=W0212 unstructured = unstructured_gsc # pylint: disable=E0606 directional = directional_gsc # pylint: disable=E0606 @@ -477,7 +478,8 @@ def vario_estimate_axis( field.mask = np.logical_or(field.mask, missing_mask) mask = np.ma.getmaskarray(field) if ( - not config.USE_GSTOOLS_CORE and config._GSTOOLS_CORE_AVAIL + not config.USE_GSTOOLS_CORE + and config._GSTOOLS_CORE_AVAIL # pylint: disable=W0212 ): # pylint: disable=W0212 mask = np.asarray(mask, dtype=np.int32) else: @@ -495,7 +497,8 @@ def vario_estimate_axis( cython_estimator = _set_estimator(estimator) if ( - config.USE_GSTOOLS_CORE and config._GSTOOLS_CORE_AVAIL + config.USE_GSTOOLS_CORE + and config._GSTOOLS_CORE_AVAIL # pylint: disable=W0212 ): # pylint: disable=W0212 ma_structured = ma_structured_gsc # pylint: disable=E0606 structured = structured_gsc # pylint: disable=E0606