Sfoglia il codice sorgente

fix(resource): return parsed TD candidate metrics

root 3 mesi fa
parent
commit
f84fa1f615
1 ha cambiato i file con 11 aggiunte e 11 eliminazioni
  1. 11 11
      tools/run_6400_architecture_td_ab.py

+ 11 - 11
tools/run_6400_architecture_td_ab.py

@@ -137,6 +137,17 @@ def parse_candidate(top: str, root: Path) -> dict[str, object]:
             timing, (r"(?:Hold|HWNS)[^\n]*?(-?[0-9]+(?:\.[0-9]+)?)\s*ns",)
             timing, (r"(?:Hold|HWNS)[^\n]*?(-?[0-9]+(?:\.[0-9]+)?)\s*ns",)
         ),
         ),
     }
     }
+    return {
+        "metrics": metrics,
+        "area_reports": [
+            {"path": str(path), "sha256": sha256(path)} for path in area_paths if path.is_file()
+        ],
+        "timing_report": (
+            {"path": str(timing_path), "sha256": sha256(timing_path)}
+            if timing_path.is_file()
+            else None
+        ),
+    }
 
 
 
 
 def warning_audit(log_path: Path) -> dict[str, object]:
 def warning_audit(log_path: Path) -> dict[str, object]:
@@ -158,17 +169,6 @@ def warning_audit(log_path: Path) -> dict[str, object]:
         "noteworthy": noteworthy[:200],
         "noteworthy": noteworthy[:200],
         "blocking": blocking[:100],
         "blocking": blocking[:100],
     }
     }
-    return {
-        "metrics": metrics,
-        "area_reports": [
-            {"path": str(path), "sha256": sha256(path)} for path in area_paths if path.is_file()
-        ],
-        "timing_report": (
-            {"path": str(timing_path), "sha256": sha256(timing_path)}
-            if timing_path.is_file()
-            else None
-        ),
-    }
 
 
 
 
 def main(argv: list[str] | None = None) -> int:
 def main(argv: list[str] | None = None) -> int: