File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -2003,12 +2003,10 @@ def column_track(self, line):
2003
2003
line.
2004
2004
"""
2005
2005
2006
- dl = max (norm (line [1 ] - line [0 ]), 1 )
2007
2006
tol = 1e-3
2008
-
2009
- def track_dist (p ):
2010
- """Non-dimensionalised distance of point along track"""
2011
- return norm (p - line [0 ]) / dl
2007
+ def track_dist (p ): return norm (p - line [0 ])
2008
+ dl = track_dist (line [1 ])
2009
+ tol_dl = tol * dl
2012
2010
2013
2011
track , dist = [], []
2014
2012
start_col , end_col = None , None
@@ -2034,7 +2032,7 @@ def track_dist(p):
2034
2032
elif col == end_col :
2035
2033
pts = [pts [0 ], line [- 1 ]]
2036
2034
din , dout = track_dist (pts [0 ]), track_dist (pts [- 1 ])
2037
- if abs (dout - din ) > tol :
2035
+ if abs (dout - din ) > tol_dl :
2038
2036
track .append ((col , pts [0 ], pts [- 1 ]))
2039
2037
dist .append (din )
2040
2038
You can’t perform that action at this time.
0 commit comments