Skip to content

Commit 22212fb

Browse files
committed
Fix ratio error
1 parent 8ce6535 commit 22212fb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Tools/scripts/summarize_stats.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,6 @@ def __init__(self, num: int, den: int | None, percentage: bool = True):
419419
self.num = num
420420
self.den = den
421421
self.percentage = percentage
422-
if den == 0 and num != 0:
423-
raise ValueError("Invalid denominator")
424422

425423
def __float__(self):
426424
if self.den == 0:

0 commit comments

Comments
 (0)