From c951acde99c069cf656e30119f5423bcee0b1a57 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sun, 15 Oct 2006 04:37:30 +0000 Subject: Make sure order is an integer --- numpy/lib/polynomial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/polynomial.py') diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py index fa165dda1..123c5a05a 100644 --- a/numpy/lib/polynomial.py +++ b/numpy/lib/polynomial.py @@ -230,7 +230,7 @@ def polyfit(x, y, deg, rcond=None): See also polyval """ - order = deg + 1. + order = int(deg) + 1 x = NX.asarray(x) + 0.0 y = NX.asarray(y) + 0.0 -- cgit v1.2.1