forked from s_ranjbar/city_retrofit
correct the unit tests
This commit is contained in:
parent
11d493ba0e
commit
bf23730281
|
@ -20,7 +20,7 @@ class MontrealGenerationSystemToHubEnergyGenerationSystem:
|
||||||
'electricity generator': cte.ELECTRICITY_GENERATOR,
|
'electricity generator': cte.ELECTRICITY_GENERATOR,
|
||||||
'PV system': cte.PHOTOVOLTAIC,
|
'PV system': cte.PHOTOVOLTAIC,
|
||||||
'heat pump': cte.HEAT_PUMP
|
'heat pump': cte.HEAT_PUMP
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def dictionary(self) -> dict:
|
def dictionary(self) -> dict:
|
||||||
|
|
|
@ -83,7 +83,7 @@ class MontrealCustomEnergySystemParameters:
|
||||||
def _create_generation_systems(archetype_system):
|
def _create_generation_systems(archetype_system):
|
||||||
_generation_systems = []
|
_generation_systems = []
|
||||||
for archetype_generation_system in archetype_system.generation_systems:
|
for archetype_generation_system in archetype_system.generation_systems:
|
||||||
if archetype_generation_system.system_type == 'PV system':
|
if archetype_generation_system.system_type == 'Photovoltaic':
|
||||||
_generation_system = PvGenerationSystem()
|
_generation_system = PvGenerationSystem()
|
||||||
_type = 'PV system'
|
_type = 'PV system'
|
||||||
_generation_system.system_type = Dictionaries().montreal_generation_system_to_hub_energy_generation_system[_type]
|
_generation_system.system_type = Dictionaries().montreal_generation_system_to_hub_energy_generation_system[_type]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user