- made sure that the optimal tool detected works for isolation
This commit is contained in:
@@ -11,6 +11,7 @@ CHANGELOG for FlatCAM beta
|
|||||||
|
|
||||||
- fixed some issues with using the exec_() which now should be exec()
|
- fixed some issues with using the exec_() which now should be exec()
|
||||||
- added a context menu action in the canvas context menu for moving selected objects to origin
|
- added a context menu action in the canvas context menu for moving selected objects to origin
|
||||||
|
- made sure that the optimal tool detected works for isolation
|
||||||
|
|
||||||
14.08.2021
|
14.08.2021
|
||||||
|
|
||||||
|
|||||||
@@ -166,5 +166,8 @@ if __name__ == '__main__':
|
|||||||
timer.timeout.connect(lambda: None)
|
timer.timeout.connect(lambda: None)
|
||||||
timer.start(100)
|
timer.start(100)
|
||||||
|
|
||||||
sys.exit(app.exec())
|
try:
|
||||||
|
sys.exit(app.exec())
|
||||||
|
except SystemError:
|
||||||
|
pass
|
||||||
# app.exec()
|
# app.exec()
|
||||||
|
|||||||
@@ -1096,6 +1096,7 @@ class ToolIsolation(AppTool, Gerber):
|
|||||||
|
|
||||||
min_list = list(min_dict.keys())
|
min_list = list(min_dict.keys())
|
||||||
min_dist = min(min_list)
|
min_dist = min(min_list)
|
||||||
|
min_dist -= 0.0001 # make sure that this works for isolation case
|
||||||
|
|
||||||
return msg, min_dist
|
return msg, min_dist
|
||||||
|
|
||||||
|
|||||||
@@ -1057,6 +1057,7 @@ class NonCopperClear(AppTool, Gerber):
|
|||||||
|
|
||||||
min_list = list(min_dict.keys())
|
min_list = list(min_dict.keys())
|
||||||
min_dist = min(min_list)
|
min_dist = min(min_list)
|
||||||
|
min_dist -= 0.0001 # make sure that this works for isolation case
|
||||||
|
|
||||||
return msg, min_dist
|
return msg, min_dist
|
||||||
|
|
||||||
|
|||||||
@@ -257,6 +257,7 @@ class ToolOptimal(AppTool):
|
|||||||
|
|
||||||
min_list = list(self.min_dict.keys())
|
min_list = list(self.min_dict.keys())
|
||||||
min_dist = min(min_list)
|
min_dist = min(min_list)
|
||||||
|
min_dist -= 0.0001 # make sure that this will work for isolation case
|
||||||
min_dist_string = '%.*f' % (self.decimals, float(min_dist))
|
min_dist_string = '%.*f' % (self.decimals, float(min_dist))
|
||||||
self.ui.result_entry.set_value(min_dist_string)
|
self.ui.result_entry.set_value(min_dist_string)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user