Unverified Commit 40fb6225 authored by Gregory Mierzwinski's avatar Gregory Mierzwinski Committed by GitHub
Browse files

Update run-visual-metrics.py with mozilla-central changes. (#10094)

parent 995da59f
......@@ -9,6 +9,7 @@
import argparse
import json
import os
import statistics
import subprocess
import sys
import tarfile
......@@ -123,8 +124,7 @@ def compute_median(subtest):
"""
if "replicates" not in subtest:
return subtest
series = subtest["replicates"][1:]
subtest["value"] = float(sum(series)) / float(len(series))
subtest["value"] = statistics.median(subtest["replicates"])
return subtest
......@@ -254,7 +254,7 @@ def main(log, args):
if returncode != 0:
log.error(
"Failed to run visualmetrics.py",
video_location=job.video_location,
video_path=job.video_path,
error=res,
)
failed_runs += 1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment