- fixed issue in camlib.CNCjob.generate_from_excellon_by_tool() in the drill path optimization algorithm selection when selecting the MH algorithm. The new API's for Google OR-tools required some changes and also the time parameter can be now just an integer therefore I modified the GUI
This commit is contained in:
@@ -5240,10 +5240,10 @@ class CNCjob(Geometry):
|
||||
|
||||
# Set search time limit in milliseconds.
|
||||
if float(self.app.defaults["excellon_search_time"]) != 0:
|
||||
search_parameters.time_limit_ms = int(
|
||||
float(self.app.defaults["excellon_search_time"]) * 1000)
|
||||
search_parameters.time_limit.seconds = int(
|
||||
float(self.app.defaults["excellon_search_time"]))
|
||||
else:
|
||||
search_parameters.time_limit_ms = 3000
|
||||
search_parameters.time_limit.seconds = 3
|
||||
|
||||
# Callback to the distance function. The callback takes two
|
||||
# arguments (the from and to node indices) and returns the distance between them.
|
||||
|
||||
Reference in New Issue
Block a user