def cp_sub_into_main_rr(rr_main, rr_sub, ys=None, ye=None):
    """
    Copies subset of results recorder into main results recorder

    :param rr_main:
    :type rr_main:
    :param rr_sub:
    :type rr_sub:
    :param ys:
    :type ys:
    :param ye:
    :type ye:
    """
    rr_main.error_alpha[ys:ye, :] = rr_sub.error_alpha
    rr_main.error_alpha_f[ys:ye, :] = rr_sub.error_alpha_f
    rr_main.error_f[ys:ye, :] = rr_sub.error_f
    rr_main.error_lsq[ys:ye, :] = rr_sub.error_lsq
    rr_main.chl[ys:ye, :] = rr_sub.chl
    rr_main.cdom[ys:ye, :] = rr_sub.cdom
    rr_main.nap[ys:ye, :] = rr_sub.nap
    rr_main.depth[ys:ye, :] = rr_sub.depth
    rr_main.sub1_frac[ys:ye, :] = rr_sub.sub1_frac
    rr_main.sub2_frac[ys:ye, :] = rr_sub.sub2_frac
    rr_main.sub3_frac[ys:ye, :] = rr_sub.sub3_frac
    rr_main.closed_rrs[ys:ye, :, :] = rr_sub.closed_rrs
    rr_main.nit[ys:ye, :] = rr_sub.nit
    rr_main.success[ys:ye, :] = rr_sub.success
    rr_main.kd[ys:ye, :] = rr_sub.kd
    rr_main.sdi[ys:ye, :] = rr_sub.sdi
    return
