Skip to content

Commit

Permalink
Minor fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtarzia committed Feb 4, 2024
1 parent 800a9d0 commit 4a244b0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/cgexplore/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,11 @@ def draw_pie(
)
else:
ratios = [1 / num_points for i in range(num_points)]
if sum(ratios) <= 1:
msg = "sum of ratios needs to be < 1"
if sum(ratios) > 1:
msg = (
f"sum of ratios needs to be < 1 (np={num_points}, "
f"ratios={ratios})"
)
raise AssertionError(msg)

markers = []
Expand Down

0 comments on commit 4a244b0

Please sign in to comment.