From fb15880a1260c677c913103dfee76f411b8ee76b Mon Sep 17 00:00:00 2001
From: Lionel GUEZ <guez@lmd.ens.fr>
Date: Fri, 6 Oct 2023 15:17:21 +0200
Subject: [PATCH] Polish

---
 Trajectories/segments.py     | 6 +++---
 Trajectories/trajectories.py | 3 +--
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/Trajectories/segments.py b/Trajectories/segments.py
index 0cce0e00..ca27e43c 100755
--- a/Trajectories/segments.py
+++ b/Trajectories/segments.py
@@ -41,9 +41,9 @@ t0 = t1
 
 # Processing:
 
-# e_overestim is not used in this script but it useful to save it to
-# the output graph of this script for further processing of the output
-# graph by other scripts:
+# e_overestim is not used in this script but it is useful to save it
+# to the output graph of this script for further processing of the
+# output graph by other scripts:
 
 g.graph_properties["e_overestim"] = g.new_graph_property("int")
 dir_edgelist = path.dirname(sys.argv[1])
diff --git a/Trajectories/trajectories.py b/Trajectories/trajectories.py
index 252a31c2..afd8efc1 100755
--- a/Trajectories/trajectories.py
+++ b/Trajectories/trajectories.py
@@ -37,8 +37,7 @@ if "cost_function" in g.edge_properties:
 
     # Set closest_succ for all nodes:
     for n in g.iter_vertices():
-        all_cost = g.get_out_edges(n,
-                                   eprops = [g.edge_properties.cost_function])
+        all_cost = g.get_out_edges(n, eprops = [g.ep.cost_function])
         # numpy array with dtype float64
 
         if all_cost.size == 0:
-- 
GitLab