- updated the Etch Compensation Tool by adding a new possibility to compensate the lateral etch (manual value)

- updated the Etch Compensation Tool such that the resulting Gerber object will have the apertures attributes ('size', 'width', 'height') updated to the changes
This commit is contained in:
Marius Stanciu
2020-05-29 20:45:03 +03:00
committed by Marius
parent ffa063286f
commit 14e6d5f63a
3 changed files with 74 additions and 15 deletions

View File

@@ -6803,8 +6803,9 @@ class App(QtCore.QObject):
self.date = ''.join(c for c in self.date if c not in ':-')
self.date = self.date.replace(' ', '_')
data = None
if self.is_legacy is False:
image = _screenshot()
image = _screenshot(alpha=None)
data = np.asarray(image)
if not data.ndim == 3 and data.shape[-1] in (3, 4):
self.inform.emit('[[WARNING_NOTCL]] %s' % _('Data must be a 3D array with last dimension 3 or 4'))
@@ -6944,7 +6945,8 @@ class App(QtCore.QObject):
directory=self.get_last_save_folder() + '/' + name,
ext_filter=_filter)
except TypeError:
filename, _f = FCFileSaveDialog.get_saved_filename(caption=_("Save Document source file"), ext_filter=_filter)
filename, _f = FCFileSaveDialog.get_saved_filename(caption=_("Save Document source file"),
ext_filter=_filter)
filename = str(filename)