From 61db4bec2633e1ab1e1a6e9aec2a84c706dce204 Mon Sep 17 00:00:00 2001 From: "Bo Zhang @NAOC" Date: Wed, 7 Sep 2016 13:41:46 +0800 Subject: [PATCH] turn nd into int nd will be passed to zeros(), which only accepts int --- wafo/interpolate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wafo/interpolate.py b/wafo/interpolate.py index 105ddd3..70819e1 100644 --- a/wafo/interpolate.py +++ b/wafo/interpolate.py @@ -561,7 +561,7 @@ class SmoothSpline(PPform): # ndy = y.ndim szy = y.shape - nd = prod(szy[:-1]) + nd = np.int(prod(szy[:-1])) ny = szy[-1] if n < 2: