bugfix in emission systems

This commit is contained in:
Guille Gutierrez 2024-03-25 15:35:00 +01:00
parent 27291ad1b8
commit 199d7dc4f9
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ class MontrealCustomCatalog(Catalog):
equipment_id = float(equipment['@id']) equipment_id = float(equipment['@id'])
equipment_type = equipment['@type'] equipment_type = equipment['@type']
model_name = equipment['name'] model_name = equipment['name']
parasitic_consumption = None parasitic_consumption = 0
if 'parasitic_consumption' in equipment: if 'parasitic_consumption' in equipment:
parasitic_consumption = float(equipment['parasitic_consumption']['#text']) / 100 parasitic_consumption = float(equipment['parasitic_consumption']['#text']) / 100

View File

@ -248,7 +248,7 @@ class MontrealFutureSystemCatalogue(Catalog):
system_id = None system_id = None
model_name = None model_name = None
system_type = None system_type = None
parasitic_energy_consumption = None parasitic_energy_consumption = 0
emission_system = EmissionSystem(system_id=system_id, emission_system = EmissionSystem(system_id=system_id,
model_name=model_name, model_name=model_name,
system_type=system_type, system_type=system_type,