Bug fixing in associate energy systems

This commit is contained in:
Guille Gutierrez 2023-06-09 12:31:01 -04:00
parent 7eafd33b33
commit 23cb327e1b

View File

@ -123,9 +123,12 @@ class MontrealCustomEnergySystemParameters:
energy_systems_connection = city.energy_systems_connection_table
for building in city.buildings:
_building_energy_systems = []
energy_systems = energy_systems_connection['Energy System Type'] \
.where(energy_systems_connection['Building'] == building.name)
energy_systems = energy_systems_connection['Energy System Type'].where(
energy_systems_connection['Building'] == building.name
)
for energy_system in energy_systems:
if str(energy_system) == 'nan':
break
_generic_building_energy_systems = city.generic_energy_systems[energy_system]
for _generic_building_energy_system in _generic_building_energy_systems:
_building_energy_equipment = EnergySystem()