- in Tcl command geocutout fixed an error due of a no longer used parameter

This commit is contained in:
Marius Stanciu
2022-01-28 03:19:09 +02:00
committed by Marius
parent b003b95022
commit c48ebdea00
2 changed files with 6 additions and 2 deletions

View File

@@ -184,7 +184,7 @@ class TclCommandGeoCutout(TclCommandSignaled):
"[WARNING] %s" % _("Tool Diameter is zero value. Change it to a positive real number."))
return "Tool Diameter is zero value. Change it to a positive real number."
if gaps not in ['lr', 'tb', '2lr', '2tb', '4', '8']:
if gaps not in ['lr', 'tb', '2lr', '2tb', '4', '8', 4, 8]:
self.app.inform.emit(
"[WARNING] %s" % _("Gaps value can be only one of: 'lr', 'tb', '2lr', '2tb', 4 or 8."))
return
@@ -306,7 +306,7 @@ class TclCommandGeoCutout(TclCommandSignaled):
def geo_init(geo_obj, app_obj):
try:
geo = cutout_obj.isolation_geometry((dia / 2), iso_type=0, corner=2, follow=None)
geo = cutout_obj.isolation_geometry((dia / 2), iso_type=0, corner=2)
except Exception as exc:
log.error("TclCommandGeoCutout.execute() --> %s" % str(exc))
return 'fail'