[SciPy-User] spline interpolators silently failing on NaNs

Paweł Kwaśniewski pawel.kw@gmail....
Sat Dec 22 11:28:12 CST 2012


OK, I'll try to work on that, but I must warn you that it won't be quick -
I'm starting my Christmas travel tomorrow...


Paweł


2012/12/22 Kevin Gullikson <kevin.gullikson.signup@gmail.com>

> We may also want to check that the x array is monotonic. I had an issue
> once where one of the x points was repeated and it made the whole spline
> return NaNs (also silently)
>
>
> On Sat, Dec 22, 2012 at 6:51 AM, <pawel.kw@gmail.com> wrote:
>
>> Hi,
>>
>> 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.
>>
>> Cheers,
>>
>> Pawel
>>
>>
>> ------------------------------
>> On Dec 21, 2012 23:02, Pauli Virtanen <pav@iki.fi> wrote:
>> 21.12.2012 23:33, Ralf Gommers kirjoitti:
>> [clip]
>> > Yes, a check in functions in fitpack2.py for NaNs as well as duplicate
>> > points and monotonicity where applicable would be quite useful.
>>
>> The NaN check could be done on the output of the spline fitting routine
>> --- then, you can just check one of the values (since NaNs always
>> propagate to fill the whole spline fit), rather than needing to check
>> all of the input values, which is slower.
>>
>> --
>> Pauli Virtanen
>>
>> _______________________________________________
>> SciPy-User mailing list
>> SciPy-User@scipy.org
>> http://mail.scipy.org/mailman/listinfo/scipy-user
>>
>> _______________________________________________
>> SciPy-User mailing list
>> SciPy-User@scipy.org
>> http://mail.scipy.org/mailman/listinfo/scipy-user
>>
>>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20121222/03ed24ed/attachment.html 


More information about the SciPy-User mailing list