def _flatten_per_cluster(per_cluster):
    return np.sort(np.concatenate(list(per_cluster.values()))).astype(np.int64)
Convert a dictionary {cluster: spikes} to a spikes array.
dataset/ETHPy150Open kwikteam/phy/phy/io/array.py/_flatten_per_cluster