scipy/scipy — pull request #3923 by otizonaizit (2014-08-31 09:50:58+00:00)
Title: ENH: optimize: handle NaNs in curve_fit

curve_fit now raises ValueError if input data contains NaNs.
Previously curve_fit would return nonsensical results.