[Biopython-dev] [Bug 2777] [Solution is one line change!] Entity sorting altered by detach_child() calls

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Wed Mar 4 14:18:28 UTC 2009


http://bugzilla.open-bio.org/show_bug.cgi?id=2777





------- Comment #3 from klaus.kopec at tuebingen.mpg.de  2009-03-04 09:18 EST -------
the output of the code in my Comment #2 is:
order before detach:
('H_PCA', 1, ' ')
(' ', 2, ' ')
(' ', 3, ' ')
(' ', 4, ' ')
order after detach:
(' ', 2, ' ')
(' ', 3, ' ')
('H_PCA', 1, ' ')

I forgot to mention, that the line "self.child_list.sort(self._sort)" needs to
be commented out as well for the fix to work (as hetatms are otherwise sorted
to the end).

hmmm... it just came to me, that this probably breaks the Parser for some other
PDB files, where residues are unsorted.

These changes do not break any existing unit tests for the PDB module, so maybe
it's still a step in the right direction.


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- 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