Skip to content

Commit

Permalink
Merge pull request #57 from Pennycook/fix-set-notation
Browse files Browse the repository at this point in the history
Restore missing {} to report outputs
  • Loading branch information
Pennycook authored Feb 23, 2024
2 parents 8b8105b + 6f87154 commit 5bf1d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codebasin/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def summary(setmap):
data = []
total_count = 0
for pset in sorted(setmap.keys(), key=len):
name = ", ".join(pset)
name = "{" + ", ".join(pset) + "}"
count = setmap[pset]
percent = (float(setmap[pset]) / float(total)) * 100
data += [[name, str(count), f"{percent:.2f}"]]
Expand Down

0 comments on commit 5bf1d72

Please sign in to comment.