From 0528aa0718cca7694d6a1bf76cbb09b891e26bd3 Mon Sep 17 00:00:00 2001 From: Saeed Ranjbar Date: Wed, 16 Aug 2023 20:07:24 -0400 Subject: [PATCH] started to work on systems --- .../north_america_energy_system_catalog.py | 18 ++++++++++++++++++ hub/data/energy_systems/Tools4CitiesESMF.xml | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/hub/catalog_factories/energy_systems/north_america_energy_system_catalog.py b/hub/catalog_factories/energy_systems/north_america_energy_system_catalog.py index f6b37cff..e3a54197 100644 --- a/hub/catalog_factories/energy_systems/north_america_energy_system_catalog.py +++ b/hub/catalog_factories/energy_systems/north_america_energy_system_catalog.py @@ -194,6 +194,24 @@ class NorthAmericaEnergySystemCatalog(Catalog): storage_components.append(storage_component) return storage_components + def _load_systems(self): + systems = [] + catalog_systems = self._archetypes['encomp:EnergySystemCatalog']['energysystemconfiguration'] + for catalog_system in catalog_systems: + system_configuration = catalog_system['@configurationName'] + energy_system = System(None, + None, + system_configuration, + None, + None, + None, + None, + None, + None, + None) + systems.append(energy_system) + return systems + def _load_materials(self): materials = [] _materials = self._archetypes['encomp:EnergySystemCatalog']['energycomponent']['materials'] diff --git a/hub/data/energy_systems/Tools4CitiesESMF.xml b/hub/data/energy_systems/Tools4CitiesESMF.xml index f7e45e35..ef96db92 100644 --- a/hub/data/energy_systems/Tools4CitiesESMF.xml +++ b/hub/data/energy_systems/Tools4CitiesESMF.xml @@ -50,7 +50,7 @@ - +