Skip to content

Commit 156750b

Browse files
committed
Add a filter for the various math warnings.
1 parent 2b272f1 commit 156750b

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

treeherder/webapp/api/performance_data.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import datetime
22
import multiprocessing
33
import time
4+
import warnings
45
from collections import defaultdict
56
from urllib.parse import urlencode
67

@@ -1682,13 +1683,16 @@ def _process_mann_whitney_task(
16821683
Process a single mann-whitney-u test task for parallel execution.
16831684
This is a static method so it can be pickled by multiprocessing.
16841685
"""
1685-
new_stats = PerfCompareResults._process_stats(
1686-
statistics_base_perf_data,
1687-
statistics_new_perf_data,
1688-
header,
1689-
lower_is_better,
1690-
remove_outliers=False,
1691-
)
1686+
# Suppress warnings during statistical processing to avoid cluttering output
1687+
with warnings.catch_warnings():
1688+
warnings.simplefilter("ignore")
1689+
new_stats = PerfCompareResults._process_stats(
1690+
statistics_base_perf_data,
1691+
statistics_new_perf_data,
1692+
header,
1693+
lower_is_better,
1694+
remove_outliers=False,
1695+
)
16921696

16931697
row_result = {
16941698
**common_result,

0 commit comments

Comments
 (0)