First time here? Check out the FAQ!

Ask Your Question
4

Suppressing warning messages

asked 13 years ago

shacsmuggler gravatar image

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!

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
4

answered 13 years ago

niles gravatar image

Try

set_verbose(-1)
Preview: (hide)
link

Comments

Thanks! That did it.

shacsmuggler gravatar imageshacsmuggler ( 13 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 13 years ago

Seen: 1,577 times

Last updated: Jun 16 '11