From acd21dc4eabcf2094af4063b707eeb537cd4ca2d Mon Sep 17 00:00:00 2001 From: Till Frankenbach Date: Mon, 26 Aug 2024 13:22:48 +0200 Subject: [PATCH] feat: adapt error mesage to mention optimization Co-authored-by: Jakob Schnell --- ORStools/proc/directions_points_layer_proc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ORStools/proc/directions_points_layer_proc.py b/ORStools/proc/directions_points_layer_proc.py index a20f51c9..24f0d202 100644 --- a/ORStools/proc/directions_points_layer_proc.py +++ b/ORStools/proc/directions_points_layer_proc.py @@ -221,7 +221,8 @@ def sort(f): # check for duplicate points if len(points) != len(set(points)): raise exceptions.DuplicateError( - "There are duplicate points in the input layer, which need to be removed." + "There are duplicate points in the input layer. Traveling Salesman Optimization does not allow this. + Either remove the duplicates or deselect Traveling Salesman. ) params = get_params_optimize(points, profile, optimization_mode)