[SciPy-User] spline interpolators silently failing on NaNs

Pauli Virtanen pav@iki...
Fri Dec 21 16:02:09 CST 2012


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



More information about the SciPy-User mailing list