Skip to content

Commit

Permalink
Merge pull request #620 from gisce/fix-b5-id-regulatori
Browse files Browse the repository at this point in the history
Fix getting id_regulatori
  • Loading branch information
ecarreras authored Mar 5, 2024
2 parents 3a2e2b0 + fed582c commit 4bd08b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcnmc/cir_8_2021/FB5.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def get_inst_name(element_id):
else data_ip

o_subestacio = trafo['ct'][1]
o_maquina = trafo.get('id_regulatori', trafo['name']).strip() or trafo['name']
o_maquina = (trafo['id_regulatori'] or '').strip() or trafo['name']
o_cini = trafo['cini']
o_pot_maquina = format_f(
float(trafo['potencia_nominal']) / 1000.0, decimals=3)
Expand Down

0 comments on commit 4bd08b5

Please sign in to comment.