Skip to content

Commit

Permalink
[3D][Fixed] THT resistors
Browse files Browse the repository at this point in the history
Problem introduced by pre-commit tests
  • Loading branch information
set-soft committed Jan 11, 2024
1 parent 7bfd46e commit 2c91fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kibot/out_base_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def create_colored_tht_resistor(self, ori, name, bars, r_len):
m = coo_re.match(ln)
if m:
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
if abs(x_len-r_len) < 0.01:
logger.debug(' - Found horizontal: {}'.format(round(x_len, 2)))
Expand Down

0 comments on commit 2c91fd7

Please sign in to comment.