Skip to content

Commit e49ba13

Browse files
linting
1 parent a8e93c7 commit e49ba13

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

codeflash/verification/pytest_plugin.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,7 @@ def should_stop(
300300
# Use sorted array for faster median and min/max operations
301301
recent_sorted = sorted(recent)
302302
mid = window // 2
303-
if window % 2:
304-
m = recent_sorted[mid]
305-
else:
306-
m = (recent_sorted[mid - 1] + recent_sorted[mid]) / 2
303+
m = recent_sorted[mid] if window % 2 else (recent_sorted[mid - 1] + recent_sorted[mid]) / 2
307304

308305
# 1) All recent points close to the median
309306
centered = True

0 commit comments

Comments
 (0)