- fixed the Gerber parser such that when it encounter an aperture with size 0.0 it will replace it with the smallest number that is still displayed which is (10 ** -self.decimals); previously it replaced with a too small number (1e-12)
This commit is contained in:
@@ -718,7 +718,7 @@ class Gerber(Geometry):
|
||||
# we should not test for "size" key as it does not exist in this case.
|
||||
if self.apertures[current_aperture]["type"] != "AM":
|
||||
if self.apertures[current_aperture]["size"] == 0:
|
||||
self.apertures[current_aperture]["size"] = 1e-12
|
||||
self.apertures[current_aperture]["size"] = 10 ** -self.decimals
|
||||
# log.debug(self.apertures[current_aperture])
|
||||
|
||||
# Take care of the current path with the previous tool
|
||||
|
||||
Reference in New Issue
Block a user