code: def _compute_runs(self, array):
          
          if len(array) < 1:
              return []
          return numpy.split(array, numpy.where(numpy.diff(array) != 1)[0] + 1)
docs: Compute runs as a list of arrays,
          each containing the indices of a contiguous run.
  
          :param array: the data array
          :type  array: numpy 1D array
          :rtype: list of numpy 1D arrays