fix: small issues in energy system parameter importer is fixed
This commit is contained in:
parent
3545418293
commit
bf0c42315d
|
@ -448,7 +448,7 @@
|
|||
<pv_generation_component>
|
||||
<system_id>12</system_id>
|
||||
<name>Photovoltaic Module</name>
|
||||
<system_type>Photovoltaic</system_type>
|
||||
<system_type>photovoltaic</system_type>
|
||||
<model_name>445MS</model_name>
|
||||
<manufacturer>Canadian Solar</manufacturer>
|
||||
<nominal_electricity_output/>
|
||||
|
@ -1027,7 +1027,7 @@
|
|||
<pv_generation_component>
|
||||
<system_id>26</system_id>
|
||||
<name>template Photovoltaic Module</name>
|
||||
<system_type>Photovoltaic</system_type>
|
||||
<system_type>photovoltaic</system_type>
|
||||
<model_name/>
|
||||
<manufacturer/>
|
||||
<nominal_electricity_output/>
|
||||
|
|
|
@ -12,12 +12,16 @@ class MontrealCustomFuelToHubFuel:
|
|||
"""
|
||||
Montreal custom fuel to hub fuel class
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
self._dictionary = {
|
||||
'gas': cte.GAS,
|
||||
'electricity': cte.ELECTRICITY,
|
||||
'renewable': cte.RENEWABLE
|
||||
}
|
||||
'gas': cte.GAS,
|
||||
'natural gas': cte.GAS,
|
||||
'diesel': cte.DIESEL,
|
||||
'biomass': cte.BIOMASS,
|
||||
'electricity': cte.ELECTRICITY,
|
||||
'renewable': cte.RENEWABLE
|
||||
}
|
||||
|
||||
@property
|
||||
def dictionary(self) -> dict:
|
||||
|
|
|
@ -18,7 +18,7 @@ class MontrealGenerationSystemToHubEnergyGenerationSystem:
|
|||
'furnace': cte.BASEBOARD,
|
||||
'cooler': cte.CHILLER,
|
||||
'electricity generator': cte.ELECTRICITY_GENERATOR,
|
||||
'PV system': cte.PHOTOVOLTAIC,
|
||||
'photovoltaic': cte.PHOTOVOLTAIC,
|
||||
'heat pump': cte.HEAT_PUMP
|
||||
}
|
||||
|
||||
|
|
|
@ -88,12 +88,12 @@ class MontrealFutureEnergySystemParameters:
|
|||
archetype_generation_systems = archetype_system.generation_systems
|
||||
if archetype_generation_systems is not None:
|
||||
for archetype_generation_system in archetype_system.generation_systems:
|
||||
if archetype_generation_system.system_type == 'Photovoltaic':
|
||||
if archetype_generation_system.system_type == 'photovoltaic':
|
||||
_generation_system = PvGenerationSystem()
|
||||
_generation_system.name = archetype_generation_system.name
|
||||
_generation_system.model_name = archetype_generation_system.model_name
|
||||
_generation_system.manufacturer = archetype_generation_system.manufacturer
|
||||
_type = 'PV system'
|
||||
_type = archetype_generation_system.system_type
|
||||
_generation_system.system_type = Dictionaries().montreal_generation_system_to_hub_energy_generation_system[_type]
|
||||
_fuel_type = Dictionaries().montreal_custom_fuel_to_hub_fuel[archetype_generation_system.fuel_type]
|
||||
_generation_system.fuel_type = _fuel_type
|
||||
|
@ -126,7 +126,7 @@ class MontrealFutureEnergySystemParameters:
|
|||
_generation_system.manufacturer = archetype_generation_system.manufacturer
|
||||
_type = archetype_generation_system.system_type
|
||||
_generation_system.system_type = Dictionaries().montreal_generation_system_to_hub_energy_generation_system[_type]
|
||||
_fuel_type = Dictionaries().north_america_custom_fuel_to_hub_fuel[archetype_generation_system.fuel_type]
|
||||
_fuel_type = Dictionaries().montreal_custom_fuel_to_hub_fuel[archetype_generation_system.fuel_type]
|
||||
_generation_system.fuel_type = _fuel_type
|
||||
_generation_system.nominal_heat_output = archetype_generation_system.nominal_heat_output
|
||||
_generation_system.nominal_cooling_output = archetype_generation_system.nominal_cooling_output
|
||||
|
|
Loading…
Reference in New Issue
Block a user