From d3800eca4f7232e1f35d73545a476753f03f5cfb Mon Sep 17 00:00:00 2001 From: Lionel GUEZ <guez@lmd.ens.fr> Date: Tue, 12 Sep 2023 19:40:47 +0200 Subject: [PATCH] Add tests `Extract_component` and `Draw_component` --- Trajectories/Tests/tests.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Trajectories/Tests/tests.json b/Trajectories/Tests/tests.json index 355353b3..f9c39755 100644 --- a/Trajectories/Tests/tests.json +++ b/Trajectories/Tests/tests.json @@ -144,5 +144,25 @@ "$src_dir/Trajectories/Tests/example_2.graphml" ], "description": "A toy case to test the algorithm in trajectories.py, specifically to test the order in which edges are processed." + }, + "Extract_component": + { + "command": + [ + "$src_dir/Trajectories/extract_component.py", + "$my_data_dir/Eurec4A/Graph_anti_c19e69d/segments_cost.gt", + "1980897", "component_1980897.graphml" + ] + }, + "Draw_component": + { + "description": "draw_segments.py from a graph containing an extracted component.", + "command": + [ + "$src_dir/Trajectories/draw_segments.py", + "$tests_old_dir/Extract_component/component_1980897.graphml", + "component_1980897.gv", + "-t", "$my_data_dir/Eurec4A/Graph_anti_c19e69d/traj_segm.json" + ] } } -- GitLab