original_docstring: Add an Atom object.
  
          Checks for adding duplicate atoms, and raises a
          PDBConstructionException if so.
          
docstring: Add an Atom object.
  Checks for adding duplicate atoms, and raises a
  PDBConstructionException if so.
docstring_tokens: Add an Atom object . Checks for adding duplicate atoms and raises a PDBConstructionException if so .
code: def add(self, atom):
          """Add an Atom object.
  
          Checks for adding duplicate atoms, and raises a
          PDBConstructionException if so.
          """
          atom_id = atom.get_id()
          if self.has_id(atom_id):
              raise PDBConstructionException(
                  "Atom %s defined twice in residue %s" % (atom_id, self)
              )
          Entity.add(self, atom)
code_tokens: def add ( self , atom ) : atom_id = atom . get_id ( ) if self . has_id ( atom_id ) : raise PDBConstructionException ( "Atom %s defined twice in residue %s" % ( atom_id , self ) ) Entity . add ( self , atom )
short_docstring: Add an Atom object.
short_docstring_tokens: Add an Atom object .
comment: """Add an Atom object.
  
          Checks for adding duplicate atoms, and raises a
          PDBConstructionException if so.
          """