fixed error in logic in _associate_energy_systems
This commit is contained in:
parent
cbda6ce13d
commit
f13d7fd860
|
@ -75,9 +75,10 @@ class MontrealCustomEnergySystemParameters:
|
|||
@staticmethod
|
||||
def _create_generic_systems(archetype, building,
|
||||
_energy_systems_connection_table, _generic_energy_systems):
|
||||
building_systems = []
|
||||
data = [archetype.name, building.name]
|
||||
_energy_systems_connection_table.loc[len(_energy_systems_connection_table)] = data
|
||||
if archetype.name not in _generic_energy_systems:
|
||||
building_systems = []
|
||||
for system in archetype.systems:
|
||||
energy_system = GenericEnergySystem()
|
||||
_hub_demand_types = []
|
||||
|
@ -116,7 +117,6 @@ class MontrealCustomEnergySystemParameters:
|
|||
energy_system.distribution_system = _distribution_system
|
||||
|
||||
building_systems.append(energy_system)
|
||||
if archetype.name not in _generic_energy_systems:
|
||||
_generic_energy_systems[archetype.name] = building_systems
|
||||
|
||||
return _energy_systems_connection_table, _generic_energy_systems
|
||||
|
|
|
@ -41,5 +41,3 @@ class TestSystemsCatalog(TestCase):
|
|||
def test_north_america_systems_catalog(self):
|
||||
catalog = EnergySystemsCatalogFactory('north_america').catalog
|
||||
print(catalog.entries())
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user