docs: def _build_tree(self):
          """Build the KDTree for the observed data
          """
          if not self.nn_ready:
              self.kdtree   = scipy.spatial.cKDTree(self.data)
              self.nn_ready = True