This commit is contained in:
Artix
2025-03-04 12:12:06 +02:00
parent 08f8ca60a8
commit 859ef325eb
16 changed files with 93 additions and 93 deletions

View File

@@ -2220,7 +2220,7 @@ class ToolDrilling(AppTool, Excellon):
x_tc, y_tc = [0, 0]
try:
if cnc_job_obj.xy_toolchange != '':
tcxy_temp = re.sub('[()\[\]]', '', str(cnc_job_obj.xy_toolchange))
tcxy_temp = re.sub(r'[()\[\]]', '', str(cnc_job_obj.xy_toolchange))
if tcxy_temp:
x_tc, y_tc = [float(eval(a)) for a in tcxy_temp.split(",")]
except Exception:

View File

@@ -976,7 +976,7 @@ class NonCopperClear(AppTool, Gerber):
if len(total_geo) in [0, 1]:
msg = ('[ERROR_NOTCL] %s' % _("Too few polygons in the Gerber object to determine distances."))
return msg, np.Inf
return msg, np.inf
min_dict = {}
idx = 1
for geo in total_geo:

View File

@@ -549,10 +549,10 @@ class ToolTransform(AppTool):
"""
def bounds_rec(lst):
minx = np.Inf
miny = np.Inf
maxx = -np.Inf
maxy = -np.Inf
minx = np.inf
miny = np.inf
maxx = -np.inf
maxy = -np.inf
try:
for obj in lst: