Skip to content

Commit

Permalink
MAINT: Be clearer about using statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Sep 9, 2024
1 parent 047febc commit 4070f68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asv/step_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import math
import collections
import heapq
from statistics import median
import statistics

try:
from . import _rangemedian
Expand Down Expand Up @@ -59,7 +59,7 @@ def detect_steps(y, w=None):
# Fill-in and normalize weights
w_valid = [ww for ww in w if ww is not None and ww == ww]
if w_valid:
w_median = median(w_valid)
w_median = statistics.median(w_valid)
if w_median == 0:
w_median = 1.0
else:
Expand Down

0 comments on commit 4070f68

Please sign in to comment.