[SciPy-User] spline interpolators silently failing on NaNs

Pauli Virtanen pav@iki...
Sat Dec 22 07:21:39 CST 2012


22.12.2012 14:51, pawel.kw@gmail.com kirjoitti:
> I have also encountered this problem on several occasions-every time I
> forget about this and it takes some time before I realise what's wrong.
> I could try to implement a NaN check, resulting with an error message.
> Can someone point me to some instructions on how to contribute properly?
> I guess there's an official way of submitting code - I've never done
> this. I have some experience with svn and git (I use it regularly for
> some private projects), I'd be happy to contribute.

You can take a look at here:

https://github.com/scipy/scipy/blob/master/HACKING.rst.txt

These checks would go around here:

https://github.com/scipy/scipy/blob/master/scipy/interpolate/fitpack2.py#L147

https://github.com/scipy/scipy/blob/master/scipy/interpolate/fitpack.py#L469

https://github.com/scipy/scipy/blob/master/scipy/interpolate/fitpack.py#L898

https://github.com/scipy/scipy/blob/master/scipy/interpolate/fitpack2.py#L634

https://github.com/scipy/scipy/blob/master/scipy/interpolate/fitpack2.py#L706

https://github.com/scipy/scipy/blob/master/scipy/interpolate/fitpack2.py#L766

and so on...

(Yes, there are two separate fitpack wrappers.)

-- 
Pauli Virtanen



More information about the SciPy-User mailing list