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 authored and RoyStegeman committed May 8, 2024
1 parent 97aea48 commit 845b5d6
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 845b5d6

Please sign in to comment.