[Biopython-dev] [Bug 1772] Bio.PDB's parse_pdb_header never stops parsing if there is no ATOM record

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Tue Apr 26 03:49:37 EDT 2005


------- Additional Comments From mdehoon at ims.u-tokyo.ac.jp  2005-04-26 03:49 -------
I have accepted the first patch in CVS:
<         f=open(file,'r')
>         f=open(filename,'r')
But the second part doesn't seem right:
<         if not re.search("\AATOM",l) and not re.search("\AEND",l):
>         if not re.search("\AATOM",l):
It will append HETATM lines to the header. Instead we can use
         if not re.search("\AATOM",l) and not re.search("\AHETATM",l):

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the Biopython-dev mailing list