ebe_scripts/average_event_spvn_h5.py
def calculate_nonlinear_reponse(vn_array):
    """
        this function computes all the nonlinear response coefficients
        proposed in the paper arXiv: 1502.02502 up to v6
    """
    chi_422, chi_422_err = calculate_chi_422(vn_array)
    v4_Psi2, v4_Psi2_err = calculate_v4_Psi2(chi_422, chi_422_err, vn_array)
    rho_422, rho_422_err = calculate_rho_422(v4_Psi2, v4_Psi2_err, vn_array)
    v4_L, v4_L_err = calculate_v4_L(v4_Psi2, v4_Psi2_err, vn_array)

    chi_523, chi_523_err = calculate_chi_523(vn_array)
    v5_Psi23, v5_Psi23_err = calculate_v5_Psi23(chi_523, chi_523_err, vn_array)
    rho_523, rho_523_err = calculate_rho_523(v5_Psi23, v5_Psi23_err, vn_array)
    v5_L, v5_L_err = calculate_v5_L(v5_Psi23, v5_Psi23_err, vn_array)

    chi_6222, chi_6222_err = calculate_chi_6222(vn_array)
    v6_Psi2, v6_Psi2_err = calculate_v6_Psi2(chi_6222, chi_6222_err, vn_array)
    rho_6222, rho_6222_err = calculate_rho_6222(v6_Psi2, v6_Psi2_err, vn_array)

    chi_633, chi_633_err = calculate_chi_633(vn_array)
    v6_Psi3, v6_Psi3_err = calculate_v6_Psi3(chi_633, chi_633_err, vn_array)
    rho_633, rho_633_err = calculate_rho_633(v6_Psi3, v6_Psi3_err, vn_array)
    v6_L, v6_L_err = calculate_v6_L(chi_6222, chi_6222_err,
                                    chi_633, chi_633_err, vn_array)

    results = [v4_L, v4_L_err, v4_Psi2, v4_Psi2_err, rho_422, rho_422_err,
               chi_422, chi_422_err,
               v5_L, v5_L_err, v5_Psi23, v5_Psi23_err, rho_523, rho_523_err,
               chi_523, chi_523_err,
               v6_L, v6_L_err, v6_Psi2, v6_Psi2_err, v6_Psi3, v6_Psi3_err,
               rho_6222, rho_6222_err, rho_633, rho_633_err,
               chi_6222, chi_6222_err, chi_633, chi_633_err]
    return(results)

        this function computes all the nonlinear response coefficients
        proposed in the paper arXiv: 1502.02502 up to v6
    
this function computes all the nonlinear response coefficients
proposed in the paper arXiv: 1502.02502 up to v6
this function computes all the nonlinear response coefficients proposed in the paper arXiv : 1502 . 02502 up to v6
def calculate_nonlinear_reponse(vn_array):
    chi_422, chi_422_err = calculate_chi_422(vn_array)
    v4_Psi2, v4_Psi2_err = calculate_v4_Psi2(chi_422, chi_422_err, vn_array)
    rho_422, rho_422_err = calculate_rho_422(v4_Psi2, v4_Psi2_err, vn_array)
    v4_L, v4_L_err = calculate_v4_L(v4_Psi2, v4_Psi2_err, vn_array)
    chi_523, chi_523_err = calculate_chi_523(vn_array)
    v5_Psi23, v5_Psi23_err = calculate_v5_Psi23(chi_523, chi_523_err, vn_array)
    rho_523, rho_523_err = calculate_rho_523(v5_Psi23, v5_Psi23_err, vn_array)
    v5_L, v5_L_err = calculate_v5_L(v5_Psi23, v5_Psi23_err, vn_array)
    chi_6222, chi_6222_err = calculate_chi_6222(vn_array)
    v6_Psi2, v6_Psi2_err = calculate_v6_Psi2(chi_6222, chi_6222_err, vn_array)
    rho_6222, rho_6222_err = calculate_rho_6222(v6_Psi2, v6_Psi2_err, vn_array)
    chi_633, chi_633_err = calculate_chi_633(vn_array)
    v6_Psi3, v6_Psi3_err = calculate_v6_Psi3(chi_633, chi_633_err, vn_array)
    rho_633, rho_633_err = calculate_rho_633(v6_Psi3, v6_Psi3_err, vn_array)
    v6_L, v6_L_err = calculate_v6_L(chi_6222, chi_6222_err,
                                    chi_633, chi_633_err, vn_array)
    results = [v4_L, v4_L_err, v4_Psi2, v4_Psi2_err, rho_422, rho_422_err,
               chi_422, chi_422_err,
               v5_L, v5_L_err, v5_Psi23, v5_Psi23_err, rho_523, rho_523_err,
               chi_523, chi_523_err,
               v6_L, v6_L_err, v6_Psi2, v6_Psi2_err, v6_Psi3, v6_Psi3_err,
               rho_6222, rho_6222_err, rho_633, rho_633_err,
               chi_6222, chi_6222_err, chi_633, chi_633_err]
    return(results)
def calculate_nonlinear_reponse ( vn_array ) : chi_422 , chi_422_err = calculate_chi_422 ( vn_array ) v4_Psi2 , v4_Psi2_err = calculate_v4_Psi2 ( chi_422 , chi_422_err , vn_array ) rho_422 , rho_422_err = calculate_rho_422 ( v4_Psi2 , v4_Psi2_err , vn_array ) v4_L , v4_L_err = calculate_v4_L ( v4_Psi2 , v4_Psi2_err , vn_array ) chi_523 , chi_523_err = calculate_chi_523 ( vn_array ) v5_Psi23 , v5_Psi23_err = calculate_v5_Psi23 ( chi_523 , chi_523_err , vn_array ) rho_523 , rho_523_err = calculate_rho_523 ( v5_Psi23 , v5_Psi23_err , vn_array ) v5_L , v5_L_err = calculate_v5_L ( v5_Psi23 , v5_Psi23_err , vn_array ) chi_6222 , chi_6222_err = calculate_chi_6222 ( vn_array ) v6_Psi2 , v6_Psi2_err = calculate_v6_Psi2 ( chi_6222 , chi_6222_err , vn_array ) rho_6222 , rho_6222_err = calculate_rho_6222 ( v6_Psi2 , v6_Psi2_err , vn_array ) chi_633 , chi_633_err = calculate_chi_633 ( vn_array ) v6_Psi3 , v6_Psi3_err = calculate_v6_Psi3 ( chi_633 , chi_633_err , vn_array ) rho_633 , rho_633_err = calculate_rho_633 ( v6_Psi3 , v6_Psi3_err , vn_array ) v6_L , v6_L_err = calculate_v6_L ( chi_6222 , chi_6222_err , chi_633 , chi_633_err , vn_array ) results = [ v4_L , v4_L_err , v4_Psi2 , v4_Psi2_err , rho_422 , rho_422_err , chi_422 , chi_422_err , v5_L , v5_L_err , v5_Psi23 , v5_Psi23_err , rho_523 , rho_523_err , chi_523 , chi_523_err , v6_L , v6_L_err , v6_Psi2 , v6_Psi2_err , v6_Psi3 , v6_Psi3_err , rho_6222 , rho_6222_err , rho_633 , rho_633_err , chi_6222 , chi_6222_err , chi_633 , chi_633_err ] return ( results )
this function computes all the nonlinear response coefficients
proposed in the paper arXiv: 1502.02502 up to v6
this function computes all the nonlinear response coefficients proposed in the paper arXiv : 1502 . 02502 up to v6
"""
        this function computes all the nonlinear response coefficients
        proposed in the paper arXiv: 1502.02502 up to v6
    """
vn_array