rename function.

'job' has a meaning in Path.  sort_jobs doesn't sort jobs, it sorts hole locations.
This commit is contained in:
sliptonic
2022-01-16 12:57:49 -06:00
parent ad296ee060
commit d121e27694
4 changed files with 8 additions and 8 deletions

View File

@@ -639,7 +639,7 @@ def rampPlunge(edge, rampangle, destZ, startZ):
return rampCmds
def sort_jobs(locations, keys, attractors=None):
def sort_locations(locations, keys, attractors=None):
"""sort holes by the nearest neighbor method
keys: two-element list of keys for X and Y coordinates. for example ['x','y']
originally written by m0n5t3r for PathHelix