@@ -100,7 +100,7 @@ def sort_func(row):
100
100
101
101
102
102
def normalize (point ):
103
- return [point [0 ] * 1e-6 , point [1 ] * 1e-6 ]
103
+ return [point [0 ], point [1 ]]
104
104
105
105
106
106
def parse_draw_segment (d ):
@@ -119,28 +119,28 @@ def parse_draw_segment(d):
119
119
"type" : shape ,
120
120
"start" : start ,
121
121
"end" : end ,
122
- "width" : d .GetWidth () * 1e-6
122
+ "width" : d .GetWidth ()
123
123
}
124
124
if shape == "circle" :
125
125
return {
126
126
"type" : shape ,
127
127
"start" : start ,
128
- "radius" : d .GetRadius () * 1e-6 ,
129
- "width" : d .GetWidth () * 1e-6
128
+ "radius" : d .GetRadius (),
129
+ "width" : d .GetWidth ()
130
130
}
131
131
if shape == "arc" :
132
132
a1 = d .GetArcAngleStart () * 0.1
133
133
a2 = (d .GetArcAngleStart () + d .GetAngle ()) * 0.1
134
134
if d .GetAngle () < 0 :
135
135
(a1 , a2 ) = (a2 , a1 )
136
- r = d .GetRadius () * 1e-6
136
+ r = d .GetRadius ()
137
137
return {
138
138
"type" : shape ,
139
139
"start" : start ,
140
140
"radius" : r ,
141
141
"startangle" : a1 ,
142
142
"endangle" : a2 ,
143
- "width" : d .GetWidth () * 1e-6
143
+ "width" : d .GetWidth ()
144
144
}
145
145
if shape == "polygon" :
146
146
if hasattr (d , "GetPolyShape" ):
@@ -186,11 +186,11 @@ def parse_text(d):
186
186
angle = d .GetOrientation () * 0.1
187
187
print d , angle
188
188
if hasattr (d , "GetTextHeight" ):
189
- height = d .GetTextHeight () * 1e-6
190
- width = d .GetTextWidth () * 1e-6
189
+ height = d .GetTextHeight ()
190
+ width = d .GetTextWidth ()
191
191
else :
192
- height = d .GetHeight () * 1e-6
193
- width = d .GetWidth () * 1e-6
192
+ height = d .GetHeight ()
193
+ width = d .GetWidth ()
194
194
return {
195
195
"pos" : pos ,
196
196
"text" : d .GetText (),
@@ -317,7 +317,7 @@ def parse_modules(pcb):
317
317
print 'Detected self intersecting polygons in custom pad'
318
318
pad_dict ["polygons" ] = parse_poly_set (polygon_set )
319
319
if shape == "roundrect" :
320
- pad_dict ["radius" ] = p .GetRoundRectCornerRadius () * 1e-6
320
+ pad_dict ["radius" ] = p .GetRoundRectCornerRadius ()
321
321
if (p .GetAttribute () == pcbnew .PAD_ATTRIB_STANDARD or
322
322
p .GetAttribute () == pcbnew .PAD_ATTRIB_HOLE_NOT_PLATED ):
323
323
pad_dict ["type" ] = "th"
0 commit comments