diff options
author | jaseg <git@jaseg.de> | 2022-01-24 14:19:01 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-01-24 14:19:01 +0100 |
commit | a1c1d6d971257f03f1926db9dc44e659d2773d2d (patch) | |
tree | 443af73413f52b47fbbddf185bb497fb483c93c0 /gerbonara/gerber/graphic_objects.py | |
parent | 4a6d76c557caf7263ab57e5fe840d28aa3356621 (diff) | |
download | gerbonara-a1c1d6d971257f03f1926db9dc44e659d2773d2d.tar.gz gerbonara-a1c1d6d971257f03f1926db9dc44e659d2773d2d.tar.bz2 gerbonara-a1c1d6d971257f03f1926db9dc44e659d2773d2d.zip |
Add more tests
Diffstat (limited to 'gerbonara/gerber/graphic_objects.py')
-rw-r--r-- | gerbonara/gerber/graphic_objects.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gerbonara/gerber/graphic_objects.py b/gerbonara/gerber/graphic_objects.py index 98fc094..1f475a6 100644 --- a/gerbonara/gerber/graphic_objects.py +++ b/gerbonara/gerber/graphic_objects.py @@ -249,8 +249,8 @@ class Line(GerberObject): yield from ctx.select_tool(self.tool) yield from ctx.route_mode(self.unit, *self.p1) - x = ctx.settings.write_gerber_value(self.x2, self.unit) - y = ctx.settings.write_gerber_value(self.y2, self.unit) + x = ctx.settings.write_excellon_value(self.x2, self.unit) + y = ctx.settings.write_excellon_value(self.y2, self.unit) yield f'G01X{x}Y{y}' ctx.set_current_point(self.unit, *self.p2) @@ -368,10 +368,10 @@ class Arc(GerberObject): yield from ctx.route_mode(self.unit, self.x1, self.y1) code = 'G02' if self.clockwise else 'G03' - x = ctx.settings.write_gerber_value(self.x2, self.unit) - y = ctx.settings.write_gerber_value(self.y2, self.unit) - i = ctx.settings.write_gerber_value(self.cx, self.unit) - j = ctx.settings.write_gerber_value(self.cy, self.unit) + x = ctx.settings.write_excellon_value(self.x2, self.unit) + y = ctx.settings.write_excellon_value(self.y2, self.unit) + i = ctx.settings.write_excellon_value(self.cx, self.unit) + j = ctx.settings.write_excellon_value(self.cy, self.unit) yield f'{code}X{x}Y{y}I{i}J{j}' ctx.set_current_point(self.unit, self.x2, self.y2) |