Skip to content

Commit 721695d

Browse files
committed
hopefully resolving doc build issue
1 parent e607193 commit 721695d

File tree

2 files changed

+41
-41
lines changed

2 files changed

+41
-41
lines changed

xarray/core/dataarray.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2398,25 +2398,25 @@ def interp_like(
23982398
determine which interpolant is used:
23992399
24002400
1. **Interpolation along one dimension of 1D data (`method='linear'`)**
2401-
- Uses :py:class:`numpy.interp`, unless `fill_value='extrapolate'` is provided via `kwargs`.
2401+
- Uses :py:class:`numpy.interp`, unless `fill_value='extrapolate'` is provided via `kwargs`.
24022402
24032403
2. **Interpolation along one dimension of N-dimensional data (N ≥ 1)**
2404-
- Methods {"linear", "nearest", "zero", "slinear", "quadratic", "cubic", "quintic", "polynomial"}
2405-
use :py:class:`scipy.interpolate.interp1d`, unless conditions permit the use of :py:class:`numpy.interp`
2406-
(as in the case of `method='linear'` for 1D data).
2407-
- If `method='polynomial'`, the `order` keyword argument must also be provided.
2404+
- Methods {"linear", "nearest", "zero", "slinear", "quadratic", "cubic", "quintic", "polynomial"}
2405+
use :py:class:`scipy.interpolate.interp1d`, unless conditions permit the use of :py:class:`numpy.interp`
2406+
(as in the case of `method='linear'` for 1D data).
2407+
- If `method='polynomial'`, the `order` keyword argument must also be provided.
24082408
24092409
3. **Special interpolants for interpolation along one dimension of N-dimensional data (N ≥ 1)**
2410-
- Depending on the `method`, the following interpolants from :py:class:`scipy.interpolate` are used:
2411-
- `"pchip"`: :py:class:`scipy.interpolate.PchipInterpolator`
2412-
- `"barycentric"`: :py:class:`scipy.interpolate.BarycentricInterpolator`
2413-
- `"krogh"`: :py:class:`scipy.interpolate.KroghInterpolator`
2414-
- `"akima"` or `"makima"`: :py:class:`scipy.interpolate.Akima1dInterpolator`
2415-
(`makima` is handled by passing the `makima` flag).
2410+
- Depending on the `method`, the following interpolants from :py:class:`scipy.interpolate` are used:
2411+
- `"pchip"`: :py:class:`scipy.interpolate.PchipInterpolator`
2412+
- `"barycentric"`: :py:class:`scipy.interpolate.BarycentricInterpolator`
2413+
- `"krogh"`: :py:class:`scipy.interpolate.KroghInterpolator`
2414+
- `"akima"` or `"makima"`: :py:class:`scipy.interpolate.Akima1dInterpolator`
2415+
(`makima` is handled by passing the `makima` flag).
24162416
24172417
4. **Interpolation along multiple dimensions of multi-dimensional data**
2418-
- Uses :py:func:`scipy.interpolate.interpn` for methods {"linear", "nearest", "slinear",
2419-
"cubic", "quintic", "pchip"}.
2418+
- Uses :py:func:`scipy.interpolate.interpn` for methods {"linear", "nearest", "slinear",
2419+
"cubic", "quintic", "pchip"}.
24202420
24212421
Parameters
24222422
----------

xarray/core/dataset.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3900,26 +3900,26 @@ def interp(
39003900
determine which interpolant is used:
39013901
39023902
1. **Interpolation along one dimension of 1D data (`method='linear'`)**
3903-
- Uses :py:class:`numpy.interp`, unless `fill_value='extrapolate'` is provided via `kwargs`.
3903+
- Uses :py:class:`numpy.interp`, unless `fill_value='extrapolate'` is provided via `kwargs`.
39043904
39053905
2. **Interpolation along one dimension of N-dimensional data (N ≥ 1)**
3906-
- Methods {"linear", "nearest", "zero", "slinear", "quadratic", "cubic", "quintic", "polynomial"}
3907-
use :py:class:`scipy.interpolate.interp1d`, unless conditions permit the use of :py:class:`numpy.interp`
3908-
(as in the case of `method='linear'` for 1D data).
3909-
- If `method='polynomial'`, the `order` keyword argument must also be provided. In this case,
3910-
:py:class:`scipy.interpolate.interp1d` is called with `kind=order`.
3906+
- Methods {"linear", "nearest", "zero", "slinear", "quadratic", "cubic", "quintic", "polynomial"}
3907+
use :py:class:`scipy.interpolate.interp1d`, unless conditions permit the use of :py:class:`numpy.interp`
3908+
(as in the case of `method='linear'` for 1D data).
3909+
- If `method='polynomial'`, the `order` keyword argument must also be provided. In this case,
3910+
:py:class:`scipy.interpolate.interp1d` is called with `kind=order`.
39113911
39123912
3. **Special interpolants for interpolation along one dimension of N-dimensional data (N ≥ 1)**
3913-
- Depending on the `method`, the following interpolants from :py:class:`scipy.interpolate` are used:
3914-
- `"pchip"`: :py:class:`scipy.interpolate.PchipInterpolator`
3915-
- `"barycentric"`: :py:class:`scipy.interpolate.BarycentricInterpolator`
3916-
- `"krogh"`: :py:class:`scipy.interpolate.KroghInterpolator`
3917-
- `"akima"` or `"makima"`: :py:class:`scipy.interpolate.Akima1dInterpolator`
3918-
(`makima` is handled by passing `makima` to `method`).
3913+
- Depending on the `method`, the following interpolants from :py:class:`scipy.interpolate` are used:
3914+
- `"pchip"`: :py:class:`scipy.interpolate.PchipInterpolator`
3915+
- `"barycentric"`: :py:class:`scipy.interpolate.BarycentricInterpolator`
3916+
- `"krogh"`: :py:class:`scipy.interpolate.KroghInterpolator`
3917+
- `"akima"` or `"makima"`: :py:class:`scipy.interpolate.Akima1dInterpolator`
3918+
(`makima` is handled by passing `makima` to `method`).
39193919
39203920
4. **Interpolation along multiple dimensions of multi-dimensional data**
3921-
- Uses :py:func:`scipy.interpolate.interpn` for methods {"linear", "nearest", "slinear",
3922-
"cubic", "quintic", "pchip"}.
3921+
- Uses :py:func:`scipy.interpolate.interpn` for methods {"linear", "nearest", "slinear",
3922+
"cubic", "quintic", "pchip"}.
39233923
39243924
Out-of-range values are filled with NaN, unless specified otherwise via `kwargs` to the numpy/scipy interpolant.
39253925
@@ -4202,26 +4202,26 @@ def interp_like(
42024202
determine which interpolant is used:
42034203
42044204
1. **Interpolation along one dimension of 1D data (`method='linear'`)**
4205-
- Uses :py:class:`numpy.interp`, unless `fill_value='extrapolate'` is provided via `kwargs`.
4205+
- Uses :py:class:`numpy.interp`, unless `fill_value='extrapolate'` is provided via `kwargs`.
42064206
42074207
2. **Interpolation along one dimension of N-dimensional data (N ≥ 1)**
4208-
- Methods {"linear", "nearest", "zero", "slinear", "quadratic", "cubic", "quintic", "polynomial"}
4209-
use :py:class:`scipy.interpolate.interp1d`, unless conditions permit the use of :py:class:`numpy.interp`
4210-
(as in the case of `method='linear'` for 1D data).
4211-
- If `method='polynomial'`, the `order` keyword argument must also be provided. In this case,
4212-
:py:class:`scipy.interpolate.interp1d` is called with `kind=order`.
4208+
- Methods {"linear", "nearest", "zero", "slinear", "quadratic", "cubic", "quintic", "polynomial"}
4209+
use :py:class:`scipy.interpolate.interp1d`, unless conditions permit the use of :py:class:`numpy.interp`
4210+
(as in the case of `method='linear'` for 1D data).
4211+
- If `method='polynomial'`, the `order` keyword argument must also be provided. In this case,
4212+
:py:class:`scipy.interpolate.interp1d` is called with `kind=order`.
42134213
42144214
3. **Special interpolants for interpolation along one dimension of N-dimensional data (N ≥ 1)**
4215-
- Depending on the `method`, the following interpolants from :py:class:`scipy.interpolate` are used:
4216-
- `"pchip"`: :py:class:`scipy.interpolate.PchipInterpolator`
4217-
- `"barycentric"`: :py:class:`scipy.interpolate.BarycentricInterpolator`
4218-
- `"krogh"`: :py:class:`scipy.interpolate.KroghInterpolator`
4219-
- `"akima"` or `"makima"`: :py:class:`scipy.interpolate.Akima1dInterpolator`
4220-
(`makima` is handled by passing `makima` to `method`).
4215+
- Depending on the `method`, the following interpolants from :py:class:`scipy.interpolate` are used:
4216+
- `"pchip"`: :py:class:`scipy.interpolate.PchipInterpolator`
4217+
- `"barycentric"`: :py:class:`scipy.interpolate.BarycentricInterpolator`
4218+
- `"krogh"`: :py:class:`scipy.interpolate.KroghInterpolator`
4219+
- `"akima"` or `"makima"`: :py:class:`scipy.interpolate.Akima1dInterpolator`
4220+
(`makima` is handled by passing `makima` to `method`).
42214221
42224222
4. **Interpolation along multiple dimensions of multi-dimensional data**
4223-
- Uses :py:func:`scipy.interpolate.interpn` for methods {"linear", "nearest", "slinear",
4224-
"cubic", "quintic", "pchip"}.
4223+
- Uses :py:func:`scipy.interpolate.interpn` for methods {"linear", "nearest", "slinear",
4224+
"cubic", "quintic", "pchip"}.
42254225
42264226
Out-of-range values are filled with NaN, unless specified otherwise via `kwargs` to the numpy/scipy interpolant.
42274227

0 commit comments

Comments
 (0)