[Biopython] Turning PDBConstructionWarning off

Peter biopython at maubp.freeserve.co.uk
Thu Nov 26 10:42:59 UTC 2009


On Thu, Nov 26, 2009 at 2:24 AM, João Rodrigues <anaryin at gmail.com> wrote:
> Dear All,
>
> Is there a way to make the PDBParser not to display Warnings when it reads
> structures? Like a flag that we pass somewhere?
>
> Regards!

Yes, use the Python warnings module to ignore PDBConstructionWarning, see:
http://docs.python.org/library/warnings.html

Peter




More information about the Biopython mailing list