[Biopython] Turning PDBConstructionWarning off

Rodrigo faccioli rodrigo_faccioli at uol.com.br
Thu Nov 26 10:41:26 UTC 2009


You can use the command line: python -O file.py

I could execute the biopython without warning message when I put that
command line. I understood that these warning messages show because we
execute the biopython  in debug mode. If you look the source code, you'll
see:

if __debug__:
     warning message

 So, I thought if set false in this variable (__debug__) I'll not warning
message.

I don't know if there is other way.

Regards,

--
Rodrigo Antonio Faccioli
Ph.D Student in Electrical Engineering
University of Sao Paulo - USP
Engineering School of Sao Carlos - EESC
Department of Electrical Engineering - SEL
Intelligent System in Structure Bioinformatics
http://laips.sel.eesc.usp.br
Phone: 55 (16) 3373-9366 Ext 229
Curriculum Lattes - http://lattes.cnpq.br/1025157978990218


On Thu, Nov 26, 2009 at 12: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!
>
> João [...] Rodrigues
> @ http://stanford.edu/~joaor/ <http://stanford.edu/%7Ejoaor/>
>
> _______________________________________________
> Biopython mailing list  -  Biopython at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biopython
>




More information about the Biopython mailing list