code: def _gate_height(self, gate):
          
          try:
              height = self.settings['gates'][gate.__class__.__name__]['height']
          except KeyError:
              height = .5
          return height
docs: Return the height to use for this gate.
  
          :param string gate: The name of the gate whose height is desired.
          :return: Height of the gate.
          :rtype: float