Does anyone know how to suppress warnings from BioPython? Specifically, the Experimental warning from the use of SearchIO?
This script is perfectly functional, but I'd like to get rid of the annoying message about SearchIO - I'm using it for such a basic function that I'm not concerned that it's still experimental
I've tried:
>>> import warnings
>>> from Bio import BiopythonWarning
>>> warnings.simplefilter('ignore', BiopythonWarning)
as per the BioPython website, but that doesn't work in this case. Changing to BiopythonExperimentalWarning isn't correct either.
I don't use Python, but this may be helpful (section 28.6.3)
https://docs.python.org/2/library/warnings.html#temporarily-suppressing-warnings