diff options
author | opiopan <opiopan@gmail.com> | 2019-04-03 00:30:00 +0900 |
---|---|---|
committer | opiopan <opiopan@gmail.com> | 2019-04-03 00:30:00 +0900 |
commit | cb420e39e278f7ab6f002600a7698d7be101eb7d (patch) | |
tree | 1d82fcd72627c71715ec0b9724c8f976a49bdfdd /examples | |
parent | b72d891998cc87273b9dd8bfe4d864cbe6a8cc62 (diff) | |
download | pcb-tools-extension-cb420e39e278f7ab6f002600a7698d7be101eb7d.tar.gz pcb-tools-extension-cb420e39e278f7ab6f002600a7698d7be101eb7d.tar.bz2 pcb-tools-extension-cb420e39e278f7ab6f002600a7698d7be101eb7d.zip |
fix a rotaion issue
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/panelize.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/panelize.py b/examples/panelize.py index 1c5c0da..34cc446 100755 --- a/examples/panelize.py +++ b/examples/panelize.py @@ -37,16 +37,17 @@ for ext in exts: ctx = DrillComposition() else: ctx = GerberComposition() - for path, x_offset, y_offset, theta in boards: + for path, x_offset, y_offset, angle in boards: file = gerberex.read(path + ext) file.to_metric() - file.rotate(theta) + file.rotate(angle) file.offset(x_offset, y_offset) ctx.merge(file) putstr('.') if ext == 'TXT': file = gerberex.read(mousebites) file.draw_mode = DxfFile.DM_MOUSE_BITES + file.to_metric() file.width = 0.5 file.format = (3, 3) ctx.merge(file) |