From 087fead4899da51888ef35e51f82989fb82511c5 Mon Sep 17 00:00:00 2001 From: Saeed Ranjbar Date: Wed, 7 Feb 2024 18:54:09 -0500 Subject: [PATCH] Title: Finalizing the energy system data model and system factory A new XML file named montreal_future_systems.xml is created where the elements of the file are the same as attributes of various classes. Therefore, the catalogue importer and energy system importer should have been updated accordingly. The catalog importer is organized in a general method so whenever someone wants to create a new catalogue they can use the created code as the blueprint. --- hub/catalog_factories/energy_systems/montreal_custom_catalog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hub/catalog_factories/energy_systems/montreal_custom_catalog.py b/hub/catalog_factories/energy_systems/montreal_custom_catalog.py index 1c6bdba5..d731f781 100644 --- a/hub/catalog_factories/energy_systems/montreal_custom_catalog.py +++ b/hub/catalog_factories/energy_systems/montreal_custom_catalog.py @@ -69,8 +69,10 @@ class MontrealCustomCatalog(Catalog): storage_system = ThermalStorageSystem(equipment_id) storage_systems = [storage_system] if model_name == 'PV system': + system_type = 'Photovoltaic' generation_system = PvGenerationSystem(equipment_id, name=None, + system_type= system_type, model_name=model_name, electricity_efficiency=electricity_efficiency, energy_storage_systems=storage_systems