Skip to content

Commit

Permalink
Merge pull request #621 from gisce/fix-b5-node
Browse files Browse the repository at this point in the history
Fix B5 getting node_id
  • Loading branch information
ecarreras authored Mar 5, 2024
2 parents 4af98ca + d97f972 commit 51aeafe
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 @@ -183,7 +183,7 @@ def get_inst_name(element_id):
o_cini = trafo['cini']
o_pot_maquina = format_f(
float(trafo['potencia_nominal']) / 1000.0, decimals=3)
o_node = trafo['node_id'][1]
o_node = trafo['node_id'] and trafo['node_id'][1] or ''

if trafo['node_baixa']:
o_node_baixa = trafo['node_baixa'][1]
Expand Down

0 comments on commit 51aeafe

Please sign in to comment.