Protool/ligand.py
def createlBondedAtoms(self):
        """
        Creates for each atom a list of the bonded Atoms
        
        This becomes one attribute of MOL2ATOM!
        """
        for bond in self.lBonds:
            self.lAtoms[bond.frm-1].lBondedAtoms.append(
                self.lAtoms[bond.to-1])

            self.lAtoms[bond.to-1].lBondedAtoms.append(
                self.lAtoms[bond.frm-1])

            atbond = copy.deepcopy(bond)
            atbond.other_atom=self.lAtoms[bond.to-1]
            self.lAtoms[bond.frm-1].lBonds.append(atbond)

            atbond = copy.deepcopy(bond)
            atbond.other_atom=self.lAtoms[bond.frm-1]
            self.lAtoms[bond.to-1].lBonds.append(atbond)
        return

        Creates for each atom a list of the bonded Atoms
        
        This becomes one attribute of MOL2ATOM!
        
Creates for each atom a list of the bonded Atoms
This becomes one attribute of MOL2ATOM!
Creates for each atom a list of the bonded Atoms This becomes one attribute of MOL2ATOM!
def createlBondedAtoms(self):
        for bond in self.lBonds:
            self.lAtoms[bond.frm-1].lBondedAtoms.append(
                self.lAtoms[bond.to-1])
            self.lAtoms[bond.to-1].lBondedAtoms.append(
                self.lAtoms[bond.frm-1])
            atbond = copy.deepcopy(bond)
            atbond.other_atom=self.lAtoms[bond.to-1]
            self.lAtoms[bond.frm-1].lBonds.append(atbond)
            atbond = copy.deepcopy(bond)
            atbond.other_atom=self.lAtoms[bond.frm-1]
            self.lAtoms[bond.to-1].lBonds.append(atbond)
        return
def createlBondedAtoms ( self ) : for bond in self . lBonds : self . lAtoms [ bond . frm - 1 ] . lBondedAtoms . append ( self . lAtoms [ bond . to - 1 ] ) self . lAtoms [ bond . to - 1 ] . lBondedAtoms . append ( self . lAtoms [ bond . frm - 1 ] ) atbond = copy . deepcopy ( bond ) atbond . other_atom = self . lAtoms [ bond . to - 1 ] self . lAtoms [ bond . frm - 1 ] . lBonds . append ( atbond ) atbond = copy . deepcopy ( bond ) atbond . other_atom = self . lAtoms [ bond . frm - 1 ] self . lAtoms [ bond . to - 1 ] . lBonds . append ( atbond ) return
Creates for each atom a list of the bonded Atoms
This becomes one attribute of MOL2ATOM!
Creates for each atom a list of the bonded Atoms This becomes one attribute of MOL2ATOM!
"""
        Creates for each atom a list of the bonded Atoms
        
        This becomes one attribute of MOL2ATOM!
        """
self