diff --git a/Trajectories/cost_function.py b/Trajectories/cost_function.py index 0c57a5b98bda711eb727013ae46462fcdc876aa1..6446c4979d3e075f0d77412ec26bf90877c5a9db 100755 --- a/Trajectories/cost_function.py +++ b/Trajectories/cost_function.py @@ -193,7 +193,7 @@ for n in g.vertices(): # We have to read more from the shapefiles and redefine # properties. - if n.in_degree() == 0 or len_seg > 2 * n_days_avg: + if n.in_degree() == 0 or len_seg >= 2 * n_days_avg: # We cannot use part of properties from the beginning # of the segment. properties = node_to_prop(