def _cluster_indices_to_mask(components, n_tot):
 for (ci, c) in enumerate(components):
  components[ci] = np.zeros(n_tot, dtype=bool)
  components[ci][c] = True
 return components

def _cluster_indices_to_mask ( components , n_tot ) : for ( ci , c ) in enumerate ( components ) : components [ ci ] = np . zeros ( n_tot , dtype = bool ) components [ ci ] [ c ] = True return components
convert to the old format of clusters .