[Biopython-dev] [Bug 2777] New: [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 12:41:33 UTC 2009


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

           Summary: [Solution is one line change!] Entity sorting altered by
                    detach_child() calls
           Product: Biopython
           Version: 1.49
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: trivial
          Priority: P1
         Component: Main Distribution
        AssignedTo: biopython-dev at biopython.org
        ReportedBy: klaus.kopec at tuebingen.mpg.de


detach_child(self, id) in Bio.PDB.Entity changes the order of self.child_list.

This bug is caused by line 71, where self.child_list is set to
self.child_dict.values() which are values of an unordered(!) dict:
self.child_list=self.child_dict.values()

Solution: Replace line 71 by:
self.child_list.remove(child)


-- 
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