From 194c8f9da76e28665d2ec0f9d8f8de95ae4a8c96 Mon Sep 17 00:00:00 2001 From: Lionel GUEZ <guez@lmd.ens.fr> Date: Wed, 18 May 2022 15:15:04 +0200 Subject: [PATCH] Polish --- gt_matlab_trajs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gt_matlab_trajs.py b/gt_matlab_trajs.py index d2b467d5..309b7ab5 100755 --- a/gt_matlab_trajs.py +++ b/gt_matlab_trajs.py @@ -56,8 +56,8 @@ for edge in g.edges(): else: # source is a continuation or root with one out if trg.in_degree() > 1: - # if the current cf is the smallest - if current_cf <= min({g.ep.cost_function[e] for e in trg.in_edges()}): + if current_cf <= min({g.ep.cost_function[e] + for e in trg.in_edges()}): g.vp.traj[trg] = g.vp.traj[src] else: g.vp.traj[trg] = g.vp.traj[src] -- GitLab