Nice plot
This commit is contained in:
parent
e11c72ed7a
commit
77bf180634
1 changed files with 7 additions and 2 deletions
|
@ -47,9 +47,14 @@ def analyze_failure(s):
|
||||||
v = sorted(v)
|
v = sorted(v)
|
||||||
total = len(v)
|
total = len(v)
|
||||||
rate = round(1000 / k)
|
rate = round(1000 / k)
|
||||||
|
score = 0
|
||||||
|
f.write(f"{rate},0,0\n")
|
||||||
for idx,e in enumerate(v,start=1):
|
for idx,e in enumerate(v,start=1):
|
||||||
if e == 90: break
|
if e >= 90:
|
||||||
f.write(f"{rate},{e},{idx/total}\n")
|
f.write(f"{rate},90,{score}\n")
|
||||||
|
break
|
||||||
|
score = idx/total
|
||||||
|
f.write(f"{rate},{e},{score}\n")
|
||||||
|
|
||||||
def analyze(s):
|
def analyze(s):
|
||||||
print("analyzing...")
|
print("analyzing...")
|
||||||
|
|
Loading…
Reference in a new issue