def get_ae(): """Returnb dict [mol] = ae""" # User give the ae if arguments["--ae_ref"]: # -#-#-#-#-#-#-#-#-#- # # P r o c e s s i n g # # -#-#-#-#-#-#-#-#-#- # ae_nr = dict() for mol, ae in zip(l_ele, arguments["--ae_ref"]): ae_nr[mol] = float(ae) # User wana use the nr ae elif arguments["--ae_nr"]: need_all = True print_children = True get_children = True # -#-#-#-#- # # l _ e l e # # -#-#-#-#- # a = ListEle(l_ele, get_children, print_children) cond_filter_ele, cmd_where = get_cmd(arguments, a, need_all) # -#-#-#-#-#-#-#-#-#- # # P r o c e s s i n g # # -#-#-#-#-#-#-#-#-#- # from src.data_util import get_enr, get_ae_nr _, _, f_info = get_ecal_runinfo_finfo(cmd_where, "var") e_nr = get_enr(cond_filter_ele) ae_nr = get_ae_nr(f_info, e_nr) # -#-#-#-#-#- # # R e t u r n # # -#-#-#-#-#- # return ae_nr
# -#-#-#-#-#-#-#-#-#-#-#-#- # if arguments["--no_relativist"] or arguments["--ae"]: e_nr = get_enr(cond_filter_ele) complete_e_nr(e_nr, f_info, ae_exp, zpe_exp) e_diff, e_diff_rel = get_ediff(e_cal, e_nr) convert("e_cal", e_cal, opt=1) convert("e_diff", e_diff, opt=1) # -#- # # A E # # -#- # if arguments["--ae"]: ae_cal = get_ae_cal(f_info, e_cal) ae_nr = get_ae_nr(f_info, e_nr) ae_diff = get_ae_diff(ae_cal, ae_nr) convert("ae_cal", ae_cal, opt=1) convert("ae_nr", ae_nr) convert("ae_diff", ae_diff, opt=1) # _ # |_) ._ o ._ _|_ # | | | | | |_ # table_body = [] # -#-#-#-#-#- # # H e a d e r # # -#-#-#-#-#- #