solved a bug assigning the energy systems to the buildings

This commit is contained in:
Pilar Monsalvete 2023-07-07 15:31:32 -04:00
parent 68ca47d644
commit bca68f33ff

View File

@ -56,7 +56,6 @@ class MontrealCustomEnergySystemParameters:
_energy_systems_connection_table, _generic_energy_systems \
= self._create_generic_systems(archetype, building,
_energy_systems_connection_table, _generic_energy_systems)
city.energy_systems_connection_table = _energy_systems_connection_table
city.generic_energy_systems = _generic_energy_systems
@ -123,9 +122,8 @@ 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'][
energy_systems_connection['Building'] == building.name]
for energy_system in energy_systems:
if str(energy_system) == 'nan':
break