From 71154d530a45febeb1b4239421f13c448dd7d107 Mon Sep 17 00:00:00 2001 From: Lionel GUEZ <guez@lmd.ens.fr> Date: Mon, 20 Feb 2023 23:01:34 +0100 Subject: [PATCH] Do not test validity of eddies Since we now only write valid eddies to shapefiles. --- Overlap/report_graph.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Overlap/report_graph.py b/Overlap/report_graph.py index 9817352e..2e2c9891 100755 --- a/Overlap/report_graph.py +++ b/Overlap/report_graph.py @@ -54,18 +54,16 @@ def set_attribute(G, SHPC): G.graph["e_overestim"]) ishape = SHPC.comp_ishape(date_index, eddy_index, 0) shape_rec = reader.shapeRecord(ishape) - - if shape_rec.record.valid == 1: - G.add_node(n, coordinates = tuple(shape_rec.shape.points[0]), - speed = shape_rec.record.speed, - ssh = shape_rec.record.ssh) + G.add_node(n, coordinates = tuple(shape_rec.shape.points[0]), + speed = shape_rec.record.speed, + ssh = shape_rec.record.ssh) else: for shape_rec in reader: n = date_eddy_to_node(shape_rec.record.date, shape_rec.record.eddy_index, G.graph["e_overestim"]) - if shape_rec.record.valid == 1 and n in G: + if n in G: G.add_node(n, coordinates = tuple(shape_rec.shape.points[0]), speed = shape_rec.record.speed, ssh = shape_rec.record.ssh) -- GitLab