Skip to content

Commit

Permalink
fix index labels used in mc2hessian
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyStegeman committed Jan 14, 2025
1 parent 31730da commit 787fb70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion validphys2/src/validphys/deltachi2.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def plot_delta_chi2_hessian_distribution(delta_chi2_hessian, pdf, total_chi2_dat
ax.hist(
delta_chi2,
bins=bins,
label=f"{pdf.label} - $\chi^2_{0}$={total_chi2_data.central_result:.0f}",
label=fr"{pdf.label} - $\chi^2_0$={total_chi2_data.central_result:.0f}",
)
ax.set_xlabel(r"$\Delta\chi^2$")
ax.set_title(r"$\Delta\chi^2$ distribution")
Expand Down
2 changes: 1 addition & 1 deletion validphys2/src/validphys/lhio.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def big_matrix(gridlist):
and the central value"""
central_value = gridlist[0]
X = pd.concat(
gridlist[1:], axis=1, keys=range(1, len(gridlist) + 1) # avoid confusion with rep0
gridlist[1:], axis=1, keys=range(1, len(gridlist)) # avoid confusion with rep0
).subtract(central_value, axis=0)
if np.any(X.isnull()) or X.shape[0] != len(central_value):
raise ValueError("Incompatible grid specifications")
Expand Down

0 comments on commit 787fb70

Please sign in to comment.