diff --git a/validphys2/src/validphys/results.py b/validphys2/src/validphys/results.py index 6c9e15a4b9..e779b151df 100644 --- a/validphys2/src/validphys/results.py +++ b/validphys2/src/validphys/results.py @@ -799,8 +799,13 @@ def groups_chi2_table(groups_data, pdf, groups_chi2, groups_each_dataset_chi2): for group, groupres, dsresults in zip(groups_data, groups_chi2, groups_each_dataset_chi2): for dataset, dsres in zip(group, dsresults): stats = chi2_stats(dsres) - stats["group"] = dataset.name + stats["dataset"] = dataset.name + stats["group"] = str(group) records.append(stats) + stats = chi2_stats(groupres) + stats["group"] = str(group) + stats["dataset"] = "Group Total" + records.append(stats) return pd.DataFrame(records)