Skip to content

Commit

Permalink
Merge pull request #616 from gisce/NEW_id_regulatori_B5
Browse files Browse the repository at this point in the history
 Añadir el campo id_regulatori en B5 - Cir8/2021
  • Loading branch information
ecarreras authored Nov 2, 2023
2 parents 1d74e5d + 477bcd8 commit f3d261d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcnmc/cir_8_2021/FB5.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_nodes(self, ct_id):
def consumer(self):
o = self.connection
fields_to_read = [
'ct', 'name', 'cini', 'potencia_nominal', 'id_estat', 'node_id', 'data_pm', 'data_baixa',
'ct', 'name', 'cini', 'potencia_nominal', 'id_estat', 'node_id', 'data_pm', 'data_baixa', 'id_regulatori',
'tipus_instalacio_cnmc_id', 'node_baixa', 'model', self.compare_field
]
fields_to_read_obra = [
Expand Down Expand Up @@ -179,7 +179,7 @@ def get_inst_name(element_id):
else data_ip

o_subestacio = trafo['ct'][1]
o_maquina = trafo['name']
o_maquina = trafo.get('id_regulatori', trafo['name']).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 f3d261d

Please sign in to comment.