Skip to content

Commit

Permalink
Merge pull request #653 from gisce/bugfix/59155_remove_node_in_cups_c…
Browse files Browse the repository at this point in the history
…heck

FIX Hacer que no se revise si el CUPS tiene nodo al generar el A1
  • Loading branch information
ecarreras authored May 21, 2024
2 parents 86c3b80 + cf74445 commit d39cc3b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libcnmc/cir_8_2021/FA1.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def consumer(self):
'name', 'id_escomesa', 'id_municipi', 'cne_anual_activa',
'cne_anual_reactiva', 'cnmc_potencia_facturada', 'et',
'polisses', 'potencia_conveni', 'potencia_adscrita',
"node_id", 'autoconsum_id', 'cnmc_numero_lectures',
'autoconsum_id', 'cnmc_numero_lectures',
'cnmc_factures_estimades', 'cnmc_factures_total',
'cnmc_energia_autoconsumida', 'cnmc_energia_excedentaria',
'force_potencia_adscrita', 'cnmc_conexion_autoconsumo',
Expand Down Expand Up @@ -497,7 +497,7 @@ def consumer(self):
o_tensio = ''
o_connexio = ''
vertex = False
if cups and cups['id_escomesa'] and "node_id" not in cups:
if cups and cups['id_escomesa']:
o_connexio = get_tipus_connexio(
O, cups['id_escomesa'][0]
)
Expand All @@ -506,7 +506,6 @@ def consumer(self):
search_params
)
id_escomesa = cups.get("id_escomesa")
o_nom_node = ''
vertex = ''
if id_escomesa:
escomesa = O.GiscedataCupsEscomesa.read(id_escomesa[0], ["node_id", "geom"])
Expand Down

0 comments on commit d39cc3b

Please sign in to comment.