From 4411c8579cd95505b08522430d0627f925d14a91 Mon Sep 17 00:00:00 2001 From: Lionel GUEZ <guez@lmd.ens.fr> Date: Mon, 4 Jul 2022 18:43:03 +0200 Subject: [PATCH] Polish --- Trajectories/trajectories.py | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/Trajectories/trajectories.py b/Trajectories/trajectories.py index bd932a77..94d2bba4 100755 --- a/Trajectories/trajectories.py +++ b/Trajectories/trajectories.py @@ -1,24 +1,16 @@ #!/usr/bin/env python3 -"""This script loads a segmented cf graph in the gt format, iterates -on all of the edges and cost functions and generates the trajectories -as done in MATLAB. Segments (nodes) have a new vertex property called -"traj_prop" that holds the trajectory ID that that segment belongs to. The -output is either an expanded JSON file and/or an edgelist file with -all of the trajectories. - -Inputs: -the gt segmented cf graph -Output: -trajectories.json that contains all of the trajectories +"""This script loads the graph of segments, with cost functions and +identifies trajectories. + +Inputs: the graph of segments produced by Graph-tool (gt or graphml +format). Output: trajectories as lists of segments and as lists of +instantaneous eddies, in JSon files. """ import graph_tool -from os import path import json -import csv -from graph_tool import util, search import sys import numpy as np -- GitLab