original_docstring: Remove a child residue from the DisorderedResidue.
  
          Arguments:
           - resname - name of the child residue to remove, as a string.
  
          
docstring: Remove a child residue from the DisorderedResidue.
  Arguments:
  resname - name of the child residue to remove, as a string.
docstring_tokens: Remove a child residue from the DisorderedResidue . Arguments : resname - name of the child residue to remove as a string .
code: def disordered_remove(self, resname):
          """Remove a child residue from the DisorderedResidue.
  
          Arguments:
           - resname - name of the child residue to remove, as a string.
  
          """
          # Get child residue
          residue = self.child_dict[resname]
          is_selected = self.selected_child is residue
  
          # Detach
          del self.child_dict[resname]
          residue.detach_parent()
  
          if is_selected and self.child_dict:  # pick another selected_child
              child = next(iter(self.child_dict))
              self.disordered_select(child)
          elif not self.child_dict:  # no more children
              self.selected_child = None
code_tokens: def disordered_remove ( self , resname ) : residue = self . child_dict [ resname ] is_selected = self . selected_child is residue del self . child_dict [ resname ] residue . detach_parent ( ) if is_selected and self . child_dict : child = next ( iter ( self . child_dict ) ) self . disordered_select ( child ) elif not self . child_dict : self . selected_child = None
short_docstring: Remove a child residue from the DisorderedResidue.
short_docstring_tokens: Remove a child residue from the DisorderedResidue .
comment: """Remove a child residue from the DisorderedResidue.
  
          Arguments:
           - resname - name of the child residue to remove, as a string.
  
          """$SEP$# Get child residue$SEP$# Detach$SEP$# pick another selected_child$SEP$# no more children