Protool/structure.py
def addpdblines(self,lines):
        """Add the atoms in lines to the current set of atoms"""
        import PDBparser
        Y=PDBparser.PDBparser(lines,self.parse_terms)
        Y.parse()
        error=False
        for atom in Y.atoms.keys():
            if not self.atoms.has_key(atom):
                self.atoms[atom]=Y.atoms[atom]
            else:
                print 'Name clash for',atom
                error=True
        if not error:
            self.Update()
            self.attribute=Y.attribute        
            return
        else:
            print 'Protool does not allow name clashes'
            import os
            os._exit(0)
Add the atoms in lines to the current set of atoms
Add the atoms in lines to the current set of atoms
Add the atoms in lines to the current set of atoms
def addpdblines(self,lines):
        import PDBparser
        Y=PDBparser.PDBparser(lines,self.parse_terms)
        Y.parse()
        error=False
        for atom in Y.atoms.keys():
            if not self.atoms.has_key(atom):
                self.atoms[atom]=Y.atoms[atom]
            else:
                print 'Name clash for',atom
                error=True
        if not error:
            self.Update()
            self.attribute=Y.attribute        
            return
        else:
            print 'Protool does not allow name clashes'
            import os
            os._exit(0)
def addpdblines ( self , lines ) : import PDBparser Y = PDBparser . PDBparser ( lines , self . parse_terms ) Y . parse ( ) error = False for atom in Y . atoms . keys ( ) : if not self . atoms . has_key ( atom ) : self . atoms [ atom ] = Y . atoms [ atom ] else : print 'Name clash for' , atom error = True if not error : self . Update ( ) self . attribute = Y . attribute return else : print 'Protool does not allow name clashes' import os os . _exit ( 0 )
Add the atoms in lines to the current set of atoms
Add the atoms in lines to the current set of atoms
"""Add the atoms in lines to the current set of atoms"""
self
lines