From 941cab9df0c92bf4bbf85ea8003aa9cd64bb2a7e Mon Sep 17 00:00:00 2001
From: Lionel GUEZ <guez@lmd.ens.fr>
Date: Tue, 12 Sep 2023 18:38:35 +0200
Subject: [PATCH] Get `e_overestim` from graph property

Instead of reading it from standard input.
---
 Trajectories/Tests/tests.json | 3 +--
 Trajectories/draw_segments.py | 4 +---
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/Trajectories/Tests/tests.json b/Trajectories/Tests/tests.json
index b37cc7cd..58c31ab2 100644
--- a/Trajectories/Tests/tests.json
+++ b/Trajectories/Tests/tests.json
@@ -103,8 +103,7 @@
             "$my_data_dir/Eurec4A/Graph_anti/segments_cost_functions.gt",
             "segments.gv",
             "-t", "$my_data_dir/Eurec4A/Graph_anti/traj_segm.json"
-	],
-	"input": "164\n"
+	]
     },
     "Plot_traj": {
 	"command": [
diff --git a/Trajectories/draw_segments.py b/Trajectories/draw_segments.py
index ce7f1f4d..6971b3a4 100755
--- a/Trajectories/draw_segments.py
+++ b/Trajectories/draw_segments.py
@@ -29,9 +29,7 @@ g_out = pgv.AGraph(directed = True)
 for v in g_in.vertices():
     g_out.add_node(g_in.vp.name[v])
 
-e_overestim = input("Enter e_overestim: ")
-e_overestim = int(e_overestim)
-report_graph.partition_graph_date(g_out, e_overestim)
+report_graph.partition_graph_date(g_out, g_in.gp.e_overestim)
 
 for e in g_in.edges():
     source  = e.source()
-- 
GitLab