def get_cluster_sizes(clustering): """ Returns a numpy array containing cell-counts for each cluster """ return np.bincount(clustering.clusters)[1:]