Skip to content

Commit

Permalink
Disable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
LSchueler committed Jul 8, 2024
1 parent 1307799 commit e60bb2f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/gstools/krige/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions src/gstools/variogram/variogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit e60bb2f

Please sign in to comment.