We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8e93c7 commit e49ba13Copy full SHA for e49ba13
codeflash/verification/pytest_plugin.py
@@ -300,10 +300,7 @@ def should_stop(
300
# Use sorted array for faster median and min/max operations
301
recent_sorted = sorted(recent)
302
mid = window // 2
303
- if window % 2:
304
- m = recent_sorted[mid]
305
- else:
306
- m = (recent_sorted[mid - 1] + recent_sorted[mid]) / 2
+ m = recent_sorted[mid] if window % 2 else (recent_sorted[mid - 1] + recent_sorted[mid]) / 2
307
308
# 1) All recent points close to the median
309
centered = True
0 commit comments