if tomo.shape[0] != len(center_arr):
        msg = 'There must be one center for every slice.'
        raise ValueError(msg)