Ring code: two-cut locator, thicker dashes, first-token confirmation, scanner in vote page
This commit is contained in:
+2
-2
@@ -165,7 +165,7 @@ async def run_far(p, n, pipes, diag):
|
||||
for d in sorted({r["d"] for r in res}):
|
||||
sub = [r["diag"] for r in res if r["d"] == d]
|
||||
good = [x for x in sub if x["rank"] in range(4) and x.get("candOk")]
|
||||
st = collections.Counter(x["stage"] for x in sub if x not in good)
|
||||
st = collections.Counter(x["stage"] + ("/" + x["loc"] if x["stage"] == "locate" else "") for x in sub if x not in good)
|
||||
print(f" d {d}: ok {len(good)}/{len(sub)} fails by stage {dict(st)}"
|
||||
f" bit errs with true geometry {sum(x['bitErr'] for x in sub) / len(sub):.1f} (ideal thr {sum(x['idealErr'] for x in sub) / len(sub):.1f})"
|
||||
f" worst-ring d' {sum(min(x['dprime']) for x in sub) / len(sub):.1f} sync span {sum(x['span'] for x in sub) / len(sub):.0f} levels")
|
||||
@@ -230,7 +230,7 @@ async def main():
|
||||
if throttle > 1:
|
||||
# rough low-end phone: chrome devtools cpu slowdown factor
|
||||
await p.send("Emulation.setCPUThrottlingRate", {"rate": throttle})
|
||||
await p.goto(f"http://127.0.0.1:{PORT}/static/ringlab/bench.html?" + os.environ.get("Q", ""))
|
||||
await p.goto(f"http://127.0.0.1:{PORT}/static/ringlab/bench.html")
|
||||
for _ in range(50):
|
||||
if await p.js("!!window.benchReady"):
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user