From 2a224a219e97de915afe9748326a786f4bf6d203 Mon Sep 17 00:00:00 2001 From: Lionel GUEZ <guez@lmd.ens.fr> Date: Tue, 23 Jul 2024 19:10:55 +0200 Subject: [PATCH] Polish --- Overlap/Analysis/edgelist_to_Graphviz.py | 2 +- Trajectories/Analysis/draw_segments.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Overlap/Analysis/edgelist_to_Graphviz.py b/Overlap/Analysis/edgelist_to_Graphviz.py index 40d1d1f6..d6618ca8 100755 --- a/Overlap/Analysis/edgelist_to_Graphviz.py +++ b/Overlap/Analysis/edgelist_to_Graphviz.py @@ -3,7 +3,7 @@ import util_eddies def partition_graph_date(A, e_overestim): - """Add subgraphs in pygraphviz graph, one subgraph for each date. We + """Add subgraphs in a pygraphviz graph, one subgraph for each date. We use the fact that the date can be deduced from the node identification number. diff --git a/Trajectories/Analysis/draw_segments.py b/Trajectories/Analysis/draw_segments.py index 4510d167..d32bdf78 100755 --- a/Trajectories/Analysis/draw_segments.py +++ b/Trajectories/Analysis/draw_segments.py @@ -21,7 +21,7 @@ import pygraphviz as pgv import edgelist_to_Graphviz import util_eddies -parser = argparse.ArgumentParser(description = __doc__) +parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("input_file", help="Graph-tool file") parser.add_argument("output_file", help="Graphviz file") parser.add_argument( @@ -54,6 +54,7 @@ for e in g_in.edges(): if args.t: with open(args.t) as f: traj_segm = json.load(f) + colors = itertools.cycle( [ "blue", -- GitLab