Skip to content

Commit

Permalink
fix table chi2 grouped by
Browse files Browse the repository at this point in the history
  • Loading branch information
scarlehoff committed May 7, 2024
1 parent afbe441 commit 7112b55
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion validphys2/src/validphys/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"] = ""
records.append(stats)
return pd.DataFrame(records)


Expand Down

0 comments on commit 7112b55

Please sign in to comment.