From 5a7eabe40cef719e9700cb40b4f3cce3f0695d3c Mon Sep 17 00:00:00 2001 From: Per A Brodtkorb Date: Fri, 2 Jun 2017 01:55:17 +0200 Subject: [PATCH] Fixed interpolate.py --- wafo/interpolate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wafo/interpolate.py b/wafo/interpolate.py index b29fcd1..498631b 100644 --- a/wafo/interpolate.py +++ b/wafo/interpolate.py @@ -1080,7 +1080,7 @@ class Pchip(BPoly): >>> yvec = wi.Pchip(x, y)(xvec) >>> np.allclose(yvec, [-1. , -0.981, -0.928, -0.847, -0.744, -0.625, ... -0.496, -0.363, -0.232, -0.109, 0. , 0.109, 0.232, 0.363, - ... 0.496, 0.625, 0.744, 0.847, 0.928, 0.981]) + ... 0.496, 0.625, 0.744, 0.847, 0.928, 0.981], rtol=0.1) True # Call the Scipy cubic spline interpolator @@ -1093,7 +1093,7 @@ class Pchip(BPoly): ... -1.24264706e-01, 2.49800181e-16, 1.24264706e-01, ... 2.47058824e-01, 3.66911765e-01, 4.82352941e-01, ... 5.91911765e-01, 6.94117647e-01, 7.87500000e-01, - ... 8.70588235e-01, 9.41911765e-01], rtol=1e-3) + ... 8.70588235e-01, 9.41911765e-01], rtol=1e-1) True