Skip to content

Commit

Permalink
Merge pull request #668 from gisce/bugfix/61171_tension_value_in_kV
Browse files Browse the repository at this point in the history
A2: FIX valores de tension en kV
  • Loading branch information
ecarreras authored Jul 23, 2024
2 parents 8a9c1c1 + 364b9cd commit e4b2ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcnmc/cir_8_2021/FA2.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def consumer(self):
get_tipus_connexio(O, esco_id) if esco_id else '')

# Tensió
o_tension = tensio if tensio else ''
o_tension = tensio / 1000.0 if tensio else ''

# Potència instalada
o_potencia_instalada = ''
Expand Down Expand Up @@ -400,7 +400,7 @@ def consumer(self):
o_provincia, # Provincia
o_zona, # Zona
o_connexion, # Connexió
('{}'.format(o_tension)).replace('.', ','), # Tensió
format_f(o_tension, decimals=3), # Tensió
o_potencia_instalada, # Potència instalada
format_f(o_energia_activa_producida, decimals=3), # Energia activa produida
format_f(o_energia_activa_consumida, decimals=3), # Energia activa consumida
Expand Down

0 comments on commit e4b2ae9

Please sign in to comment.