Skip to content

Commit

Permalink
fixed: extra_vars
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyi15 committed Apr 24, 2024
1 parent 81a2a86 commit a0df7d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tf_pwa/config_loader/config_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1405,9 +1405,9 @@ def get_extra_vars(self):
idx = idx[0], "/".join(idx[1])
var_f = ReadData(self.get_data_index(*idx))
elif isinstance(idx, str):
for k in self.params:
if k["name"] == idx:
var_f.append(k["readdata"])
for j in self.params:
if j["name"] == idx:
var_f.append(j["readdata"])
else:
raise TypeError("unknown variables for trans ")

Expand Down
2 changes: 1 addition & 1 deletion tf_pwa/tests/config_cfit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ plot:
cos(beta): { display: "$cos(\\beta)$" }
index:
charge_conjugation: { display: "$c$" }
extra_var:
extra_vars:
m_BC2:
expr: m_R_BC + m_R_CD
2Dplot:
Expand Down

0 comments on commit a0df7d8

Please sign in to comment.