diff --git a/src/cgexplore/utilities.py b/src/cgexplore/utilities.py index 14f8adf9..362a877b 100644 --- a/src/cgexplore/utilities.py +++ b/src/cgexplore/utilities.py @@ -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 = []