[SciPy-user] Python crashes systematically with UnivariateSpline

Nils Wagner nwagner at iam.uni-stuttgart.de
Tue May 22 04:58:31 EDT 2007


HUA Minh-Tÿffffffffffe2m wrote:
> Hello everyone,
>
>     I'm using Python in some physics experiments, but
> for the first time it doesn't work !!!
>
>     Each time I type in the following :
>
>     Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC
> v.1310 32 bit (Intel)]
> Type "copyright", "credits" or "license" for more
> information.
>
> IPython 0.6.13 -- An enhanced Interactive Python.
>
>     >from scipy.interpolate import UnivariateSpline
>     >b=UnivariateSpline(range(10),range(10),k=3,s=0)
>
>     and Python crashes, showing the typical Windows
> error message.
>
>     I've tried with different values for k and
> different arrays but the result is always the same.
>     Does someone know a solution?
>     Thanks and best regards,
>
>        Uni.
>
>
>       _____________________________________________________________________________ 
> Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>   
Works for me.
>>> from scipy.interpolate import UnivariateSpline
>>> b=UnivariateSpline(range(10),range(10),k=3,s=0)
>>> b
<scipy.interpolate.fitpack2.InterpolatedUnivariateSpline object at
0x2aaaae012710>
>>> import scipy
>>> scipy.__version__
'0.5.3.dev3020'
 
Nils




More information about the SciPy-User mailing list