[SciPy-User] interpolate.sproot -- Warning: the number of zeros exceeds mest

Oleksandr Huziy guziy.sasha at gmail.com
Thu Sep 18 10:07:11 EDT 2014


Can you put a very big number for mest=1e10?

Or it will still be possible to exceed it?


Cheers

2014-09-18 8:52 GMT-04:00 Nils Wagner <nils106 at googlemail.com>:

> So far I have used
>
> from scipy.interpolate import splrep, splev, sproot
> import warnings
> warnings.simplefilter("ignore")
>
> but the warning message is still there.
>
> Am I missing something ?
>
>
> Nils
>
>
> On Thu, Sep 18, 2014 at 2:43 PM, Daπid <davidmenhur at gmail.com> wrote:
>
>>
>> On 18 September 2014 14:32, Nils Wagner <nils106 at googlemail.com> wrote:
>>
>>> How can I suppress the message
>>>
>>> Warning: the number of zeros exceeds mest
>>>
>>> Is it possible to throw an exception ?
>>>
>>
>>
>> Python's warnings machinery can be used.
>>
>> https://docs.python.org/2/library/warnings.html
>>
>> Using warnings.simplefilter('ignore') you will completely silence the
>> warning, and using 'error' instead will raise an exception. You may want to
>> run this in a context, so it doesn't "leak out" on the rest of your program:
>>
>> with warnings.catch_warnings():
>>
>>
>> See examples in the docs.
>>
>>
>> /David.
>>
>> _______________________________________________
>> SciPy-User mailing list
>> SciPy-User at scipy.org
>> http://mail.scipy.org/mailman/listinfo/scipy-user
>>
>>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
>


-- 
Sasha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20140918/2297cb79/attachment.html>


More information about the SciPy-User mailing list