Skip to content

Commit ab37c79

Browse files
committed
show NaN in the report for largex
1 parent 0b8aec9 commit ab37c79

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

validphys2/src/validphys/eff_exponents.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,11 @@ def previous_effective_exponents_table(fit: FitSpec):
331331
)
332332
basis = checked["basis"]
333333
flavours = checked["flavours"]
334-
prev_a_bounds = [runcard_fl['smallx'] for runcard_fl in fitting["basis"]]
335-
prev_b_bounds = [runcard_fl['largex'] for runcard_fl in fitting["basis"]]
334+
prev_a_bounds = []
335+
prev_b_bounds = []
336+
for runcard_fl in fitting["basis"]:
337+
prev_a_bounds.append(runcard_fl.get("smallx", (0.0, 0.0)))
338+
prev_b_bounds.append(runcard_fl.get("largex", (0.0, 0.0)))
336339
# make single list alternating alpha and beta bounds
337340
data = [vals for pair in zip(prev_a_bounds, prev_b_bounds) for vals in pair]
338341
flavours_label = [f"${basis.elementlabel(fl)}$" for fl in flavours]
@@ -449,6 +452,10 @@ def effective_exponents_table_internal(next_effective_exponents_table, *, fit=No
449452
# have to call action here in case fit is None
450453
previous_table = previous_effective_exponents_table(fit)
451454
df = pd.concat((previous_table, next_effective_exponents_table), axis=1)
455+
456+
if "feature_scaling_points" in fit.as_input()["parameters"]:
457+
# Drop the beta if feature scaling points is enabled
458+
df.loc[df.index.get_level_values(1) == r'$\beta$', :] = None
452459
else:
453460
df = next_effective_exponents_table
454461
return df

0 commit comments

Comments
 (0)