Skip to content

Commit

Permalink
fixed: ci error
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyi15 committed Feb 7, 2024
1 parent 485029c commit ac45dd2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 28 deletions.
14 changes: 8 additions & 6 deletions tf_pwa/amp/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1218,16 +1218,18 @@ def get_ls_list(self):
print("using ls_selector", self.ls_selector, "for", self)
from tf_pwa.cov_ten_ir import ls_selector_weight

ls_list = tuple(ls_selector_weight(self, ls_list))
self.ls_list = tuple(ls_selector_weight(self, ls_list))
if self.ls_selector == "qr":
ls_list = tuple(ls_selector_qr(self, ls_list))
print("using ls_selector", self.ls_selector, "for", self)
self.ls_list = tuple(ls_selector_qr(self, ls_list))
if self.l_list is None:
return ls_list
return self.ls_list
ret = []
for l, s in ls_list:
for l, s in self.ls_list:
if l in self.l_list:
ret.append((l, s))
return tuple(ret)
self.ls_list = tuple(ret)
return self.ls_list


def ls_selector_qr(decay, ls_list):
Expand Down Expand Up @@ -1261,7 +1263,7 @@ def ls_selector_qr(decay, ls_list):
_, r = cg.QRdecomposition()
all_idx = []
for i in range(r.rows):
idx = 1
idx = i
for j in range(r.cols):
if r[i, j] == 0:
idx += 1
Expand Down
44 changes: 22 additions & 22 deletions tf_pwa/tests/exp_covten_params.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"A->R_BC.DR_BC->B.C_total_0r": 0.3362381960101486,
"A->R_BC.DR_BC->B.C_total_0i": 0.0,
"A->R_BC.D_g_ls_1r": 5.108641918402995,
"A->R_BC.D_g_ls_1i": -1.2666900616987227,
"R_BC->B.C_g_ls_1r": 2.986502947964428,
"R_BC->B.C_g_ls_1i": -12.093183009288715,
"R_BC->B.C_g_ls_2r": 2.132733171427154,
"R_BC->B.C_g_ls_2i": -8.190855515182967,
"A->R_BD.CR_BD->B.D_total_0r": 0.4422727359099123,
"A->R_BD.CR_BD->B.D_total_0i": 1.3471707193253954,
"A->R_BD.C_g_ls_1r": 2.2198834411406336,
"A->R_BD.C_g_ls_1i": -5.133401328802203,
"A->R_BD.C_g_ls_2r": 1.0046989805259778,
"A->R_BD.C_g_ls_2i": 0.7063804099785945,
"R_BD->B.D_g_ls_1r": 5.4001449758503455,
"R_BD->B.D_g_ls_1i": 2.973482543996047,
"A->R_CD.BR_CD->C.D_total_0r": 0.05345988360188293,
"A->R_CD.BR_CD->C.D_total_0i": 7.013165763791756,
"A->R_CD.B_g_ls_1r": 2.3005735086067856,
"A->R_CD.B_g_ls_1i": -11.481078345015383,
"A->R_CD.B_g_ls_2r": 3.173350818501353,
"A->R_CD.B_g_ls_2i": -8.136929144173918,
"R_CD->C.D_g_ls_1r": 8.875300601100328,
"R_CD->C.D_g_ls_1i": -0.3399760435955705
"A->R_BC.D_g_ls_1r": 5.302419301961359,
"A->R_BC.D_g_ls_1i": -1.6061298241924555,
"R_BC->B.C_g_ls_1r": 3.0387310413843807,
"R_BC->B.C_g_ls_1i": -12.832877203223928,
"R_BC->B.C_g_ls_2r": 4.0568239303382665,
"R_BC->B.C_g_ls_2i": -10.286345069408176,
"A->R_BD.CR_BD->B.D_total_0r": 0.3045373402432976,
"A->R_BD.CR_BD->B.D_total_0i": 1.8968555079221152,
"A->R_BD.C_g_ls_1r": 5.411211167748804,
"A->R_BD.C_g_ls_1i": -6.990218168324079,
"A->R_BD.C_g_ls_2r": 2.783374759721108,
"A->R_BD.C_g_ls_2i": 0.5986095451373904,
"R_BD->B.D_g_ls_1r": 5.6447152622288,
"R_BD->B.D_g_ls_1i": 2.9822710630539095,
"A->R_CD.BR_CD->C.D_total_0r": 0.0017709702524416045,
"A->R_CD.BR_CD->C.D_total_0i": 8.527976564988037,
"A->R_CD.B_g_ls_1r": 2.34367141408338,
"A->R_CD.B_g_ls_1i": -12.87738460909358,
"A->R_CD.B_g_ls_2r": 3.587995224199312,
"A->R_CD.B_g_ls_2i": -10.42326779174883,
"R_CD->C.D_g_ls_1r": 24.743983087920917,
"R_CD->C.D_g_ls_1i": 1.5638145927928928
}

0 comments on commit ac45dd2

Please sign in to comment.