created a loop for generation systems in _associate_energy_systems
This commit is contained in:
parent
9654bee978
commit
ef89da8552
|
@ -150,14 +150,19 @@ class NorthAmericaCustomEnergySystemParameters:
|
|||
_building_energy_equipment = EnergySystem()
|
||||
_building_energy_equipment.name = _generic_building_energy_system.name
|
||||
_building_energy_equipment.demand_types = _generic_building_energy_system.demand_types
|
||||
_building_generation_system = GenerationSystem()
|
||||
_building_generation_system.generic_generation_system = \
|
||||
copy.deepcopy(_generic_building_energy_system.generation_systems)
|
||||
_generation_systems = []
|
||||
_generic_building_generation_systems = _generic_building_energy_system.generation_systems
|
||||
for _generic_building_generation_system in _generic_building_generation_systems:
|
||||
_building_generation_system = GenerationSystem()
|
||||
_building_generation_system.generic_generation_system = \
|
||||
copy.deepcopy(_generic_building_generation_system)
|
||||
_generation_systems.append(_building_generation_system)
|
||||
_building_energy_equipment.generation_systems = _generation_systems
|
||||
_building_storage_system = ThermalStorageSystem()
|
||||
_building_storage_system.generic_storage_system = \
|
||||
copy.deepcopy(_generic_building_energy_system.energy_storage_systems)
|
||||
|
||||
_building_energy_equipment.generation_systems = _building_generation_system
|
||||
|
||||
_building_energy_equipment.energy_storage_systems = _building_storage_system
|
||||
|
||||
_building_energy_systems.append(_building_energy_equipment)
|
||||
|
|
Loading…
Reference in New Issue
Block a user