[Biopython] PDBParser Class --> Output

Peter Cock p.j.a.cock at googlemail.com
Mon Feb 14 12:02:04 UTC 2011


On Sun, Feb 13, 2011 at 11:50 PM, Willis, Jordan R
<jordan.r.willis at vanderbilt.edu> wrote:
> Hello,
>
> Now I am getting this warning which automatically prints,
>
> PDBConstructionWarning: Used element 'C' for Atom (name=CE1) with given element ''
>  warnings.warn(msg, PDBConstructionWarning)
>
> I think this is what you meant by guessing the elements, but it is still putting this to std.out. Any suggestions?
>
> Thanks,
> Jordan

That should be going to stderr not stdout IIRC.

You can use the Python warnings module to ignore these (i.e. ignore
any PDBConstructionWarning).
http://docs.python.org/library/warnings.html

Peter




More information about the Biopython mailing list