From 233d568e7c1a4704a32261fc010e2b0fa9d0f5c3 Mon Sep 17 00:00:00 2001 From: Eduard Carreras Date: Fri, 15 Mar 2024 18:20:21 +0100 Subject: [PATCH] Only if not geom --- libcnmc/cir_8_2021/FA1.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libcnmc/cir_8_2021/FA1.py b/libcnmc/cir_8_2021/FA1.py index c319e39f..3373621a 100644 --- a/libcnmc/cir_8_2021/FA1.py +++ b/libcnmc/cir_8_2021/FA1.py @@ -508,6 +508,7 @@ def consumer(self): ) id_escomesa = cups.get("id_escomesa") o_nom_node = '' + vertex = '' if id_escomesa: escomesa = O.GiscedataCupsEscomesa.read(id_escomesa[0], ["node_id", "geom"]) if escomesa.get("geom",False): @@ -519,7 +520,7 @@ def consumer(self): bloc_escomesa = O.GiscegisBlocsEscomeses.read( bloc_escomesa_id[0], ['node', 'vertex'] ) - if bloc_escomesa['vertex']: + if bloc_escomesa['vertex'] and not vertex: vertex = O.GiscegisVertex.read( bloc_escomesa['vertex'][0], ['x', 'y'] )