[3D][Fixed] THT resistors
Problem introduced by pre-commit tests
This commit is contained in:
parent
7bfd46e9d6
commit
2c91fd79bc
|
|
@ -318,7 +318,7 @@ class Base3DOptions(VariantOptions):
|
||||||
m = coo_re.match(ln)
|
m = coo_re.match(ln)
|
||||||
if m:
|
if m:
|
||||||
index = prev_ln
|
index = prev_ln
|
||||||
points = [(float(v) for v in x.split(' ')) for x in m.group(1).split(',')]
|
points = [tuple(float(v) for v in x.split(' ')) for x in m.group(1).split(',')]
|
||||||
x_len = (points[0][X]-points[2][X])*2.54*2
|
x_len = (points[0][X]-points[2][X])*2.54*2
|
||||||
if abs(x_len-r_len) < 0.01:
|
if abs(x_len-r_len) < 0.01:
|
||||||
logger.debug(' - Found horizontal: {}'.format(round(x_len, 2)))
|
logger.debug(' - Found horizontal: {}'.format(round(x_len, 2)))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue