Skip to content
Snippets Groups Projects
Commit 615cc144 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Polish

parent 1d59a7d3
No related branches found
No related tags found
No related merge requests found
...@@ -277,7 +277,7 @@ ...@@ -277,7 +277,7 @@
"Draw_recreated_list": "Draw_recreated_list":
{ {
"description": "description":
"draw_segments.py using a list of trajectories re-created by create_list.py for a component of the graph.", "draw_segments.py using a list of trajectories re-created by create_list.py for a component of the graph. The result should be the same as test Draw_component except for the colors.",
"command": "command":
[ [
"$src_dir/Trajectories/Analysis/draw_segments.py", "-t", "$src_dir/Trajectories/Analysis/draw_segments.py", "-t",
......
...@@ -6,7 +6,7 @@ import json ...@@ -6,7 +6,7 @@ import json
def create_traj_list( def create_traj_list(
my_sort, traj_prop, segm_name, inst_eddies, orientation, e_overestim my_sort, traj_prop, segm_name, inst_eddies, orientation, e_overestim
): ):
"""This function creates the lists of trajectories. """This function creates the dictionaries of trajectories.
Input: properties from the graph of segments. Input: properties from the graph of segments.
...@@ -28,10 +28,8 @@ def create_traj_list( ...@@ -28,10 +28,8 @@ def create_traj_list(
else: else:
traj_vert_ind[traj_prop[n]] = [n] traj_vert_ind[traj_prop[n]] = [n]
# sorted(traj_vert_ind) instead of range(len(traj_vert_ind)) # An element of traj_vert_ind is a trajectory, represented by a
# because create_traj_list can be called for a component of the # list of vertex indices.
# graph. An element of traj_vert_ind is a trajectory, represented
# by a list of vertex indices.
print("Number of trajectories: ", len(traj_vert_ind)) print("Number of trajectories: ", len(traj_vert_ind))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment