Skip to content

Commit

Permalink
Merge pull request #63 from jGaboardi/util/SMALL
Browse files Browse the repository at this point in the history
declare SMALL as np.finfo(float).eps
  • Loading branch information
ljwolf committed Aug 9, 2018
2 parents 9f9b22c + 7966ead commit 279865a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spaghetti/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def snapPointsOnSegments(points, segments):

# Put segments in an Rtree.
rt = cg.Rtree()
SMALL = 0.01
SMALL = np.finfo(float).eps
node2segs = {}

for segment in segments:
Expand Down

0 comments on commit 279865a

Please sign in to comment.