Ran linter.

This commit is contained in:
Felix Delattre 2026-06-11 16:33:14 +02:00
parent 49ad6bcaab
commit d29754e4a5
6 changed files with 186 additions and 84 deletions

View file

@ -203,7 +203,9 @@ def screen_site(
calculations["snr"] = snr
if snr is None or snr < snr_threshold:
calculations["failing_gate"] = "snr"
calculations["reason"] = "insufficient_snr" if snr is not None else "snr_undefined"
calculations["reason"] = (
"insufficient_snr" if snr is not None else "snr_undefined"
)
return {"response": response, "calculations": calculations}
calculations["passed_gates"].append("snr")
@ -331,10 +333,7 @@ def print_summary(results: list[dict[str, Any]], evaluation_year: int) -> None:
print(f" after_{gate}: {after}, fail_at_{gate}: {fails}")
print("\nPer-site table")
print(
f"{'site':<24} {'n':>4} {'mon':>3} {'snr':>6} "
f"{'status':>6} gate reason"
)
print(f"{'site':<24} {'n':>4} {'mon':>3} {'snr':>6} {'status':>6} gate reason")
print("-" * 72)
for row in sorted(
results,