Fix to build and run on Artix (https://aur.archlinux.org/packages/flatcam-qt6).
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user