Skip to content

Commit 231824f

Browse files
authored
Fix bug in PR 423 (#446)
修复了画图时可能的bug
1 parent 846e389 commit 231824f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

graph_net/verify_aggregated_params.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ def determine_tolerances(
1313
positive_tolerance_interpretation: PositiveToleranceInterpretation,
1414
) -> range:
1515
"""Determine tolerance range based on observed errno categories."""
16-
if samples:
17-
max_errno = len(samples)
18-
else:
19-
max_errno = positive_tolerance_interpretation.num_errno_enum_values()
20-
16+
max_errno = positive_tolerance_interpretation.num_errno_enum_values()
2117
return range(-10, max_errno + 2)
2218

2319

0 commit comments

Comments
 (0)