File tree Expand file tree Collapse file tree 4 files changed +3
-45
lines changed
Expand file tree Collapse file tree 4 files changed +3
-45
lines changed Original file line number Diff line number Diff line change 2424 ],
2525 "step" : 0
2626 },
27- "CORE_MARGIN" : {
28- "type" : " int" ,
29- "minmax" : [
30- 2 ,
31- 2
32- ],
33- "step" : 0
34- },
3527 "CELL_PAD_IN_SITES_GLOBAL_PLACEMENT" : {
3628 "type" : " int" ,
3729 "minmax" : [
Original file line number Diff line number Diff line change 2424 ],
2525 "step" : 0
2626 },
27- "CORE_MARGIN" : {
28- "type" : " int" ,
29- "minmax" : [
30- 2 ,
31- 2
32- ],
33- "step" : 0
34- },
3527 "CELL_PAD_IN_SITES_GLOBAL_PLACEMENT" : {
3628 "type" : " int" ,
3729 "minmax" : [
6456 ],
6557 "step" : 0
6658 },
67- "_PINS_DISTANCE" : {
68- "type" : " int" ,
69- "minmax" : [
70- 1 ,
71- 1
72- ],
73- "step" : 1
74- },
7559 "CTS_CLUSTER_SIZE" : {
7660 "type" : " int" ,
7761 "minmax" : [
Original file line number Diff line number Diff line change 2424 ],
2525 "step" : 0
2626 },
27- "CORE_MARGIN" : {
28- "type" : " int" ,
29- "minmax" : [
30- 2 ,
31- 2
32- ],
33- "step" : 0
34- },
3527 "CELL_PAD_IN_SITES_GLOBAL_PLACEMENT" : {
3628 "type" : " int" ,
3729 "minmax" : [
6456 ],
6557 "step" : 0
6658 },
67- "_PINS_DISTANCE" : {
68- "type" : " int" ,
69- "minmax" : [
70- 1 ,
71- 1
72- ],
73- "step" : 1
74- },
7559 "CTS_CLUSTER_SIZE" : {
7660 "type" : " int" ,
7761 "minmax" : [
Original file line number Diff line number Diff line change @@ -82,10 +82,8 @@ def extractTagFromFile(
8282 if jsonTag in jsonFile :
8383 print ("[WARN] Overwriting Tag" , jsonTag )
8484
85- # Open file
8685 try :
87- searchFilePath = file
88- with open (searchFilePath ) as f :
86+ with open (file ) as f :
8987 content = f .read ()
9088
9189 parsedMetrics = re .findall (pattern , content , re .M )
@@ -110,12 +108,12 @@ def extractTagFromFile(
110108 else :
111109 # Only print a warning if the defaultNotFound is not set
112110 print (
113- "[WARN] Tag {} not found in {}." .format (jsonTag , searchFilePath ),
111+ "[WARN] Tag {} not found in {}." .format (jsonTag , file ),
114112 "Will use {}." .format (defaultNotFound ),
115113 )
116114 jsonFile [jsonTag ] = defaultNotFound
117115 except IOError :
118- print ("[ERROR] Failed to open file:" , searchFilePath )
116+ print ("[ERROR] Failed to open file:" , file )
119117 jsonFile [jsonTag ] = "ERR"
120118
121119
You can’t perform that action at this time.
0 commit comments