From 77bf1806346954305870c5984104789fbf0dae9c Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 14 Jan 2020 17:16:34 +0000 Subject: [PATCH] Nice plot --- scripts/jantoran.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/jantoran.py b/scripts/jantoran.py index 529d3ad..eeb4f0c 100755 --- a/scripts/jantoran.py +++ b/scripts/jantoran.py @@ -47,9 +47,14 @@ def analyze_failure(s): v = sorted(v) total = len(v) rate = round(1000 / k) + score = 0 + f.write(f"{rate},0,0\n") for idx,e in enumerate(v,start=1): - if e == 90: break - f.write(f"{rate},{e},{idx/total}\n") + if e >= 90: + f.write(f"{rate},90,{score}\n") + break + score = idx/total + f.write(f"{rate},{e},{score}\n") def analyze(s): print("analyzing...")