ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 16 Jun 2011 11:53:02 -0500Suppressing warning messageshttp://ask.sagemath.org/question/8166/suppressing-warning-messages/When I do the following sage code, I get a warning message::
sage: R.<x,y,z> = QQbar[]
sage: poly = x^3 + y^3 + z^3
sage: mr = poly.parent().quo(poly.jacobian_ideal()); mr
Quotient of Multivariate Polynomial Ring in x, y, z over Algebraic Field by the ideal (3*x^2, 3*y^2, 3*z^2)
sage: project = mr.cover()
verbose 0 (2416: multi_polynomial_ideal.py, groebner_basis) Warning: falling back to very slow toy implementation.
This piece of code is repeated several times in a larger project, and all the warning messages are messing up the output. Is there a way to turn them off? (Yes, I do need to use QQbar, even though this example didn't use it.)
Thanks!Thu, 16 Jun 2011 08:26:38 -0500http://ask.sagemath.org/question/8166/suppressing-warning-messages/Answer by niles for <p>When I do the following sage code, I get a warning message::</p>
<pre><code>sage: R.<x,y,z> = QQbar[]
sage: poly = x^3 + y^3 + z^3
sage: mr = poly.parent().quo(poly.jacobian_ideal()); mr
Quotient of Multivariate Polynomial Ring in x, y, z over Algebraic Field by the ideal (3*x^2, 3*y^2, 3*z^2)
sage: project = mr.cover()
verbose 0 (2416: multi_polynomial_ideal.py, groebner_basis) Warning: falling back to very slow toy implementation.
</code></pre>
<p>This piece of code is repeated several times in a larger project, and all the warning messages are messing up the output. Is there a way to turn them off? (Yes, I do need to use QQbar, even though this example didn't use it.)</p>
<p>Thanks!</p>
http://ask.sagemath.org/question/8166/suppressing-warning-messages/?answer=12436#post-id-12436Try
set_verbose(-1)Thu, 16 Jun 2011 10:24:47 -0500http://ask.sagemath.org/question/8166/suppressing-warning-messages/?answer=12436#post-id-12436Comment by shacsmuggler for <p>Try</p>
<pre><code>set_verbose(-1)
</code></pre>
http://ask.sagemath.org/question/8166/suppressing-warning-messages/?comment=21579#post-id-21579Thanks! That did it.Thu, 16 Jun 2011 11:53:02 -0500http://ask.sagemath.org/question/8166/suppressing-warning-messages/?comment=21579#post-id-21579