Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate the ScipyGridder class #393

Merged
merged 1 commit into from
Nov 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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