class_docstr: A coordinate box that represents a block in space.
  
  Molecular complexes are typically represented with atoms as
  coordinate points. Each complex is naturally associated with a
  number of different box regions. For example, the bounding box is a
  box that contains all atoms in the molecular complex. A binding
  pocket box is a box that focuses in on a binding region of a protein
  to a ligand. A interface box is the region in which two proteins
  have a bulk interaction.
  
  The `CoordinateBox` class is designed to represent such regions of
  space. It consists of the coordinates of the box, and the collection
  of atoms that live in this box alongside their coordinates.
class_docstr_tok: ["A","coordinate","box","that","represents","a","block","in","space",".","Molecular","complexes","are","typically","represented","with","atoms","as","coordinate","points",".","Each","complex","is","naturally","associated","with","a","number","of","different","box","regions",".","For","example",",","the","bounding","box","is","a","box","that","contains","all","atoms","in","the","molecular","complex",".","A","binding","pocket","box","is","a","box","that","focuses","in","on","a","binding","region","of","a","protein","to","a","ligand",".","A","interface","box","is","the","region","in","which","two","proteins","have","a","bulk","interaction",".","The","`","CoordinateBox","`","class","is","designed","to","represent","such","regions","of","space",".","It","consists","of","the","coordinates","of","the","box",",","and","the","collection","of","atoms","that","live","in","this","box","alongside","their","coordinates","."]
docstr: Test whether this box contains another.
  
  This method checks whether `other` is contained in this box.
  
  Parameters
  ----------
  other: CoordinateBox
      The box to check is contained in this box.
  
  Returns
  -------
  bool
      `True` if `other` is contained in this box.
  
  Raises
  ------
  `ValueError` if `not isinstance(other, CoordinateBox)`.
docstr_tok: ["Test","whether","this","box","contains","another",".","This","method","checks","whether","`","other","`","is","contained","in","this","box",".","Parameters","--","--","--","--","--","other",":","CoordinateBox","The","box","to","check","is","contained","in","this","box",".","Returns","--","--","--","-","bool","`","True","`","if","`","other","`","is","contained","in","this","box",".","Raises","--","--","--","`","ValueError","`","if","`","not","isinstance","(","other",",","CoordinateBox",")","`","."]
code: def contains(self, other: "CoordinateBox") -> bool:
      """Test whether this box contains another.
  
      This method checks whether `other` is contained in this box.
  
      Parameters
      ----------
      other: CoordinateBox
          The box to check is contained in this box.
  
      Returns
      -------
      bool
          `True` if `other` is contained in this box.
  
      Raises
      ------
      `ValueError` if `not isinstance(other, CoordinateBox)`.
      """
      if not isinstance(other, CoordinateBox):
          raise ValueError("other must be a CoordinateBox")
      other_x_min, other_x_max = other.x_range
      other_y_min, other_y_max = other.y_range
      other_z_min, other_z_max = other.z_range
      self_x_min, self_x_max = self.x_range
      self_y_min, self_y_max = self.y_range
      self_z_min, self_z_max = self.z_range
      return (
          self_x_min <= other_x_min
          and other_x_max <= self_x_max
          and self_y_min <= other_y_min
          and other_y_max <= self_y_max
          and self_z_min <= other_z_min
          and other_z_max <= self_z_max
      )
  
file_path: deepchem/deepchem/utils/coordinate_box_utils.py
imports: from typing import List, Sequence, Tuple
  import numpy
  from scipy.spatial import ConvexHull
label_desc: Use image node_id 9 for calling the CoordinateBox obj's underlying member method code with example usage: obj.contains(other) and returns: unknown