bugfix in emission systems
This commit is contained in:
parent
27291ad1b8
commit
199d7dc4f9
@ -135,7 +135,7 @@ class MontrealCustomCatalog(Catalog):
|
||||
equipment_id = float(equipment['@id'])
|
||||
equipment_type = equipment['@type']
|
||||
model_name = equipment['name']
|
||||
parasitic_consumption = None
|
||||
parasitic_consumption = 0
|
||||
if 'parasitic_consumption' in equipment:
|
||||
parasitic_consumption = float(equipment['parasitic_consumption']['#text']) / 100
|
||||
|
||||
|
@ -248,7 +248,7 @@ class MontrealFutureSystemCatalogue(Catalog):
|
||||
system_id = None
|
||||
model_name = None
|
||||
system_type = None
|
||||
parasitic_energy_consumption = None
|
||||
parasitic_energy_consumption = 0
|
||||
emission_system = EmissionSystem(system_id=system_id,
|
||||
model_name=model_name,
|
||||
system_type=system_type,
|
||||
|
Loading…
Reference in New Issue
Block a user