Skip to content

Commit c5188a6

Browse files
fix: interpolate_spline doctests (#2509)
1 parent 592817b commit c5188a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tidy3d/plugins/autograd/primitives/interpolate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,12 +820,12 @@ def interpolate_spline(
820820
>>> # Quadratic interpolation with left endpoint derivative
821821
>>> x_interp, y_interp = interpolate_spline(x, y, num_points=5, endpoint_derivatives=(0, None), order=2)
822822
>>> print(np.round(y_interp, 3))
823-
[0. 0.75 1. 0.5 0. ]
823+
[0. 0.25 1. 1.25 0. ]
824824
825825
>>> # Cubic interpolation with both endpoint derivatives
826826
>>> x_interp, y_interp = interpolate_spline(x, y, num_points=5, endpoint_derivatives=(0, 0), order=3)
827827
>>> print(np.round(y_interp, 3))
828-
[0. 0.75 1. 0.75 0. ]
828+
[0. 0.5 1. 0.5 0. ]
829829
"""
830830
return _interpolate_spline(
831831
x_points,

0 commit comments

Comments
 (0)