Skip to content

Commit 73e438e

Browse files
committed
Partially fix sandbox
1 parent a8ee0a8 commit 73e438e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ekomark/plots.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ def save_operators_to_pdf(path, theory, ops, me: EKO, skip_pdfs, change_lab=Fals
229229
set whether to rename the labels
230230
"""
231231
ops_names = list(me.rotations.targetpids)
232+
if np.allclose(ops_names, br.rotate_flavor_to_evolution):
233+
ops_names = br.evol_basis_pids
234+
else:
235+
raise ValueError("Can not reconstruct PDF names")
232236
ops_id = f"o{ops['hash'][:6]}_t{theory['hash'][:6]}"
233237
path = f"{path}/{ops_id}.pdf"
234238
print(f"Plotting operators plots to {path}")
@@ -272,9 +276,10 @@ def save_operators_to_pdf(path, theory, ops, me: EKO, skip_pdfs, change_lab=Fals
272276
index_out = br.evol_basis_pids.index(label_out)
273277
lab_in = br.evol_basis[index_in]
274278
lab_out = br.evol_basis[index_out]
279+
fig = None
275280
try:
276281
fig = plot_operator(
277-
f"Operator ({lab_in};{lab_out}) µ_F^2 = {q2} GeV^2",
282+
f"Operator ({lab_in};{lab_out}) µ_F^2 = {mu2} GeV^2",
278283
new_op[label_in],
279284
new_op_err[label_in],
280285
)

0 commit comments

Comments
 (0)