From 5f643d035af4ae3debecff83c003afd4f97b7d24 Mon Sep 17 00:00:00 2001 From: Lionel GUEZ <guez@lmd.ens.fr> Date: Fri, 29 Apr 2022 23:25:53 +0200 Subject: [PATCH] Polish --- cost_function.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cost_function.py b/cost_function.py index 076c912e..6ba78fcd 100755 --- a/cost_function.py +++ b/cost_function.py @@ -166,15 +166,16 @@ for n in g.vertices(): = calculate_radii_rossby(properties) g.vp.pos_last[n] = properties[- 1]["pos"] # in degrees else: - # The number of eddies in a segment is lower than the number - # of days over which to average. The values will be the same - # except for the positions. + # The number of eddies in the segment is lower than or + # equal to the number of days over which to average. The + # values for the end of the segment will be the same as + # for the begining, except for the position. properties = node_to_prop(segment, e_overestim, array_d_init, handlers) g.vp.first_av_rad[n], g.vp.first_av_ros[n] \ = calculate_radii_rossby(properties) - g.vp.last_av_ros[n] = g.vp.first_av_ros[n] g.vp.last_av_rad[n] = g.vp.first_av_rad[n] + g.vp.last_av_ros[n] = g.vp.first_av_ros[n] g.vp.pos_first[n] = properties[0]["pos"] # in degrees g.vp.pos_last[n] = properties[- 1]["pos"] # in degrees -- GitLab