Skip to content

Commit

Permalink
Bug Fix: Alternate Sort Method includes final scan vector
Browse files Browse the repository at this point in the history
Small fix to the index slice for correctly sorting all scan vectors
  • Loading branch information
drlukeparry committed Apr 19, 2021
1 parent 6d4c779 commit e935217
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pyslm/hatching/sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ def __str__(self):
def sort(self, scanVectors: np.ndarray) -> np.ndarray:
""" This approach simply flips the odd pair of hatches"""
sv = to3DHatchArray(scanVectors)
sv[1:-1:2] = np.flip(sv[1:-1:2], 1)

#vectorCopy = scanVectors.copy()
# return vectorCopy

sv[1::2] = np.flip(sv[1::2], 1)
return from3DHatchArray(sv)


Expand Down

0 comments on commit e935217

Please sign in to comment.