Skip to content

Commit 337d0b5

Browse files
authored
Merge pull request #3545 from The-OpenROAD-Project-staging/secure-add-swap-alu-metric
Added new ORFS metrics.
2 parents 252042c + c5aa643 commit 337d0b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flow/util/genMetrics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def extractTagFromFile(
7676
count=False,
7777
occurrence=-1,
7878
defaultNotFound="N/A",
79-
t=str,
79+
t=float,
8080
required=True,
8181
):
8282
if jsonTag in jsonFile:
@@ -102,7 +102,7 @@ def extractTagFromFile(
102102
value = parsedMetrics[occurrence]
103103
value = value.strip()
104104
try:
105-
jsonFile[jsonTag] = float(value)
105+
jsonFile[jsonTag] = t(value)
106106
except BaseException:
107107
jsonFile[jsonTag] = str(value)
108108
else:

0 commit comments

Comments
 (0)