From 2c5866daf1cdfb8dd20d1d8946d5f718ccbcb051 Mon Sep 17 00:00:00 2001 From: Lionel GUEZ <guez@lmd.ens.fr> Date: Mon, 27 May 2024 16:01:46 +0200 Subject: [PATCH] Polish --- Trajectories/cost_function.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Trajectories/cost_function.py b/Trajectories/cost_function.py index 04f915f2..f7ef6da6 100755 --- a/Trajectories/cost_function.py +++ b/Trajectories/cost_function.py @@ -207,7 +207,7 @@ for n in g.vertices(): # We can use part of the properties from the beginning # of the segment. - properties = properties[len_seg - n_days_avg :] + node_to_prop( + properties = properties[len_seg - n_days_avg:] + node_to_prop( g.vp.inst_eddies[n][n_days_avg:], g.gp.e_overestim, SHPC, @@ -248,7 +248,8 @@ for edge in g.edges(): if first_av_ros[target_node] != 0 and last_av_ros[source_node] != 0: Delta_Ro = first_av_ros[target_node] - last_av_ros[source_node] else: - # At least one of the rossbies is invalid. + # At least one of the Rossby numbers (computed by + # calculate_radii_rossby) is invalid. Delta_Ro = 0 # R_Vmax 1 and 2 already exist, just get the delta -- GitLab