Skip to content

Commit

Permalink
Deprecate the ScipyGridder class (#393)
Browse files Browse the repository at this point in the history
It is replaced by `KNeighbors`, `Linear`, and `Cubic`. Remove the
gallery example since we don't want people using this particular class.
  • Loading branch information
leouieda authored Nov 16, 2022
1 parent a42126b commit 687e1ac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 93 deletions.
93 changes: 0 additions & 93 deletions doc/gallery_src/scipygridder.py

This file was deleted.

11 changes: 11 additions & 0 deletions verde/scipygridder.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@ class ScipyGridder(_BaseScipyGridder):
"""
A scipy.interpolate based gridder for scalar Cartesian data.
.. warning::
The ``ScipyGridder`` class is **deprecated** and will be **removed in
Verde v2.0.0**. Use :class:`~verde.KNeighbors`, :class:`~verde.Linear`,
and :class:`~verde.Cubic` instead.
Provides a verde gridder interface to the scipy interpolators
:class:`scipy.interpolate.LinearNDInterpolator`,
:class:`scipy.interpolate.NearestNDInterpolator`, and
Expand Down Expand Up @@ -221,6 +227,11 @@ def __init__(self, method="cubic", extra_args=None):
super().__init__()
self.method = method
self.extra_args = extra_args
warn(
"verde.ScipyGridder is deprecated and will be removed in Verde "
"v2.0.0. Use the KNeighbors, Linear, and Cubic classes instead.",
FutureWarning,
)

def _get_interpolator(self):
"""
Expand Down

0 comments on commit 687e1ac

Please sign in to comment.