[Python-modules-team] Bug#512549: python-scipy: scipy.interpolate.lagrange() does not work

Michael S. Gilbert michael.s.gilbert at gmail.com
Wed Jan 21 17:29:55 UTC 2009


Package: python-scipy
Version: 0.6.0-12
Severity: important
Tags: patch

the scipy.interpolate.lagrange() function currently does not work because poly1d is not imported ahead of time.  i have created a patch that fixes the problem (see below).  note that i tried to follow the convention with "import scipy.poly1d as poly1d", but that syntax fails for some reason.  thanks.

--- interpolate.py	2009-01-21 12:19:49.000000000 -0500
+++ /usr/lib/python2.5/site-packages/scipy/interpolate/interpolate.py	2009-01-21 11:57:07.000000000 -0500
@@ -12,6 +12,7 @@
 import numpy as np
 import scipy.linalg as slin
 import scipy.special as spec
+from scipy import poly1d
 import math
 
 import fitpack





More information about the Python-modules-team mailing list