modified the names and changed all singulars to plurals

This commit is contained in:
Saeed Ranjbar 2023-10-05 14:20:02 -04:00
parent 8e145eefa1
commit 91fa9d5ca1
4 changed files with 17 additions and 17 deletions

View File

@ -59,15 +59,15 @@ class GenericEnergySystem:
self._demand_types = value self._demand_types = value
@property @property
def generation_system(self) -> List[GenericGenerationSystem]: def generation_systems(self) -> List[GenericGenerationSystem]:
""" """
Get generation system Get generation system
:return: GenerationSystem :return: GenerationSystem
""" """
return self._generation_system return self._generation_system
@generation_system.setter @generation_systems.setter
def generation_system(self, value): def generation_systems(self, value):
""" """
Set generation system Set generation system
:return: GenerationSystem :return: GenerationSystem
@ -75,15 +75,15 @@ class GenericEnergySystem:
self._generation_system = value self._generation_system = value
@property @property
def distribution_system(self) -> Union[None, GenericDistributionSystem]: def distribution_systems(self) -> Union[None, List[GenericDistributionSystem]]:
""" """
Get distribution system Get distribution system
:return: DistributionSystem :return: DistributionSystem
""" """
return self._distribution_system return self._distribution_system
@distribution_system.setter @distribution_systems.setter
def distribution_system(self, value): def distribution_systems(self, value):
""" """
Set distribution system Set distribution system
:param value: DistributionSystem :param value: DistributionSystem
@ -91,15 +91,15 @@ class GenericEnergySystem:
self._distribution_system = value self._distribution_system = value
@property @property
def emission_system(self) -> Union[None, GenericEmissionSystem]: def emission_systems(self) -> Union[None, List[GenericEmissionSystem]]:
""" """
Get emission system Get emission system
:return: EmissionSystem :return: EmissionSystem
""" """
return self._emission_system return self._emission_system
@emission_system.setter @emission_systems.setter
def emission_system(self, value): def emission_systems(self, value):
""" """
Set emission system Set emission system
:param value: EmissionSystem :param value: EmissionSystem
@ -107,15 +107,15 @@ class GenericEnergySystem:
self._emission_system = value self._emission_system = value
@property @property
def energy_storage_system(self) -> Union[None, GenericStorageSystem]: def energy_storage_systems(self) -> Union[None, List[GenericStorageSystem]]:
""" """
Get storage system Get storage system
:return: EnergyStorageSystem :return: EnergyStorageSystem
""" """
return self._energy_storage_system return self._energy_storage_system
@energy_storage_system.setter @energy_storage_systems.setter
def energy_storage_system(self, value): def energy_storage_systems(self, value):
""" """
Set storage system Set storage system
:return: EnergyStorageSystem :return: EnergyStorageSystem

View File

@ -101,7 +101,7 @@ class MontrealCustomEnergySystemParameters:
_generation_system.storage = archetype_generation_equipment.storage _generation_system.storage = archetype_generation_equipment.storage
_generation_system.auxiliary_equipment = None _generation_system.auxiliary_equipment = None
energy_system.generation_system = _generation_system energy_system.generation_systems = _generation_system
_distribution_system = GenericDistributionSystem() _distribution_system = GenericDistributionSystem()
archetype_distribution_equipment = system.distribution_systems archetype_distribution_equipment = system.distribution_systems
@ -113,7 +113,7 @@ class MontrealCustomEnergySystemParameters:
archetype_distribution_equipment.distribution_consumption_variable_flow archetype_distribution_equipment.distribution_consumption_variable_flow
_distribution_system.heat_losses = archetype_distribution_equipment.heat_losses _distribution_system.heat_losses = archetype_distribution_equipment.heat_losses
energy_system.distribution_system = _distribution_system energy_system.distribution_systems = _distribution_system
building_systems.append(energy_system) building_systems.append(energy_system)
if archetype.name not in _generic_energy_systems: if archetype.name not in _generic_energy_systems:

View File

@ -126,7 +126,7 @@ class NorthAmericaCustomEnergySystemParameters:
_thermal_storage_system.maximum_operating_temperature = archetype_storage_equipment.maximum_operating_temperature _thermal_storage_system.maximum_operating_temperature = archetype_storage_equipment.maximum_operating_temperature
_thermal_storage_system.height = archetype_storage_equipment.height _thermal_storage_system.height = archetype_storage_equipment.height
_thermal_storage_system.layers = archetype_storage_equipment.layers _thermal_storage_system.layers = archetype_storage_equipment.layers
energy_system.energy_storage_system = _thermal_storage_system energy_system.energy_storage_systems = _thermal_storage_system
building_systems.append(energy_system) building_systems.append(energy_system)
if archetype.name not in _generic_energy_systems: if archetype.name not in _generic_energy_systems:

View File

@ -10,7 +10,7 @@ from pathlib import Path
from hub.helpers.utils import validate_import_export_type from hub.helpers.utils import validate_import_export_type
from hub.imports.results.insel_monthly_energry_balance import InselMonthlyEnergyBalance from hub.imports.results.insel_monthly_energry_balance import InselMonthlyEnergyBalance
from hub.imports.results.simplified_radiosity_algorithm import SimplifiedRadiosityAlgorithm from hub.imports.results.simplified_radiosity_algorithm import SimplifiedRadiosityAlgorithm
from hub.imports.results.energy_plus import EnergyPlusWorkflow from hub.imports.results.energy_plus import EnergyPlus
class ResultFactory: class ResultFactory:
""" """
@ -50,7 +50,7 @@ class ResultFactory:
""" """
Enrich the city with energy plus results Enrich the city with energy plus results
""" """
EnergyPlusWorkflow(self._city, self._base_path).enrich() EnergyPlus(self._city, self._base_path).enrich()
def enrich(self): def enrich(self):
""" """