From c9770f0ae4c384bc09a7a25326e48f370aa869a3 Mon Sep 17 00:00:00 2001 From: Ilya Zverev Date: Thu, 2 Nov 2017 12:26:37 +0300 Subject: [PATCH] Remove log warnings --- subway_structure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subway_structure.py b/subway_structure.py index a941546..3bce2a6 100644 --- a/subway_structure.py +++ b/subway_structure.py @@ -129,7 +129,7 @@ def distance_on_line(p1, p2, line, start_vertex=0): line_copy = line seg1, pos1 = find_segment(p1, line, start_vertex) if seg1 is None: - logging.warn('p1 %s is not projected, st=%s', p1, start_vertex) + # logging.warn('p1 %s is not projected, st=%s', p1, start_vertex) return None seg2, pos2 = find_segment(p2, line, seg1) if seg2 is None: @@ -137,7 +137,7 @@ def distance_on_line(p1, p2, line, start_vertex=0): line = line + line[1:] seg2, pos2 = find_segment(p2, line, seg1) if seg2 is None: - logging.warn('p2 %s is not projected, st=%s', p2, start_vertex) + # logging.warn('p2 %s is not projected, st=%s', p2, start_vertex) return None if seg1 == seg2: return distance(line[seg1], line[seg1+1]) * abs(pos2-pos1), seg1