2023-01-26 06:35:55 -05:00
|
|
|
"""
|
|
|
|
Dictionaries module saves all transformations of functions and usages to access the catalogs
|
|
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
2023-07-12 11:36:35 -04:00
|
|
|
Copyright © 2023 Concordia CERC group
|
2023-01-26 06:35:55 -05:00
|
|
|
Project Coder Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
|
|
|
"""
|
|
|
|
|
2023-02-06 06:29:21 -05:00
|
|
|
from hub.helpers.data.hft_function_to_hub_function import HftFunctionToHubFunction
|
2023-08-02 12:43:51 -04:00
|
|
|
from hub.helpers.data.montreal_custom_fuel_to_hub_fuel import MontrealCustomFuelToHubFuel
|
2023-02-06 06:29:21 -05:00
|
|
|
from hub.helpers.data.montreal_function_to_hub_function import MontrealFunctionToHubFunction
|
2023-07-11 16:34:11 -04:00
|
|
|
from hub.helpers.data.eilat_function_to_hub_function import EilatFunctionToHubFunction
|
2023-02-06 06:29:21 -05:00
|
|
|
from hub.helpers.data.alkis_function_to_hub_function import AlkisFunctionToHubFunction
|
|
|
|
from hub.helpers.data.pluto_function_to_hub_function import PlutoFunctionToHubFunction
|
|
|
|
from hub.helpers.data.hub_function_to_nrel_construction_function import HubFunctionToNrelConstructionFunction
|
|
|
|
from hub.helpers.data.hub_function_to_nrcan_construction_function import HubFunctionToNrcanConstructionFunction
|
2024-09-17 00:19:23 -04:00
|
|
|
from hub.helpers.data.hub_function_to_cerc_construction_function import HubFunctionToCercConstructionFunction
|
|
|
|
|
2023-07-12 11:36:35 -04:00
|
|
|
from hub.helpers.data.hub_function_to_eilat_construction_function import HubFunctionToEilatConstructionFunction
|
2023-02-06 06:29:21 -05:00
|
|
|
from hub.helpers.data.hub_usage_to_comnet_usage import HubUsageToComnetUsage
|
|
|
|
from hub.helpers.data.hub_usage_to_hft_usage import HubUsageToHftUsage
|
|
|
|
from hub.helpers.data.hub_usage_to_nrcan_usage import HubUsageToNrcanUsage
|
2023-07-11 16:34:11 -04:00
|
|
|
from hub.helpers.data.hub_usage_to_eilat_usage import HubUsageToEilatUsage
|
2024-09-17 00:19:23 -04:00
|
|
|
from hub.helpers.data.hub_usage_to_cerc_usage import HubUsageToCercUsage
|
|
|
|
|
2023-05-04 10:39:23 -04:00
|
|
|
from hub.helpers.data.montreal_system_to_hub_energy_generation_system import MontrealSystemToHubEnergyGenerationSystem
|
2023-10-13 08:23:40 -04:00
|
|
|
from hub.helpers.data.montreal_generation_system_to_hub_energy_generation_system import MontrealGenerationSystemToHubEnergyGenerationSystem
|
2023-05-12 09:27:29 -04:00
|
|
|
from hub.helpers.data.montreal_demand_type_to_hub_energy_demand_type import MontrealDemandTypeToHubEnergyDemandType
|
2023-04-25 09:59:52 -04:00
|
|
|
from hub.helpers.data.hub_function_to_montreal_custom_costs_function import HubFunctionToMontrealCustomCostsFunction
|
2023-09-26 18:54:58 -04:00
|
|
|
from hub.helpers.data.north_america_demand_type_to_hub_energy_demand_type import NorthAmericaDemandTypeToHubEnergyDemandType
|
2023-09-27 17:48:23 -04:00
|
|
|
from hub.helpers.data.north_america_system_to_hub_energy_generation_system import NorthAmericaSystemToHubEnergyGenerationSystem
|
|
|
|
from hub.helpers.data.north_america_custom_fuel_to_hub_fuel import NorthAmericaCustomFuelToHubFuel
|
2023-09-28 19:19:32 -04:00
|
|
|
from hub.helpers.data.north_america_storage_system_to_hub_storage import NorthAmericaStorageSystemToHubEnergyStorage
|
2023-01-26 06:35:55 -05:00
|
|
|
|
2023-03-16 10:06:32 -04:00
|
|
|
|
2023-01-26 06:35:55 -05:00
|
|
|
class Dictionaries:
|
|
|
|
"""
|
|
|
|
Dictionaries class
|
|
|
|
"""
|
|
|
|
|
|
|
|
@property
|
2023-02-06 06:50:58 -05:00
|
|
|
def hub_usage_to_hft_usage(self) -> dict:
|
2023-01-26 06:35:55 -05:00
|
|
|
"""
|
2023-02-06 06:29:21 -05:00
|
|
|
Hub usage to HfT usage, transformation dictionary
|
2023-01-26 06:35:55 -05:00
|
|
|
:return: dict
|
|
|
|
"""
|
2023-02-06 06:50:58 -05:00
|
|
|
return HubUsageToHftUsage().dictionary
|
2023-01-26 06:35:55 -05:00
|
|
|
|
|
|
|
@property
|
2023-02-06 06:50:58 -05:00
|
|
|
def hub_usage_to_comnet_usage(self) -> dict:
|
2023-01-26 06:35:55 -05:00
|
|
|
"""
|
2023-02-06 06:29:21 -05:00
|
|
|
Hub usage to Comnet usage, transformation dictionary
|
2023-01-26 06:35:55 -05:00
|
|
|
:return: dict
|
|
|
|
"""
|
2023-02-06 06:50:58 -05:00
|
|
|
return HubUsageToComnetUsage().dictionary
|
2023-01-26 06:35:55 -05:00
|
|
|
|
|
|
|
@property
|
2023-02-06 06:50:58 -05:00
|
|
|
def hub_usage_to_nrcan_usage(self) -> dict:
|
2023-01-26 06:35:55 -05:00
|
|
|
"""
|
2023-02-06 06:29:21 -05:00
|
|
|
Get hub usage to NRCAN usage, transformation dictionary
|
2023-01-26 06:35:55 -05:00
|
|
|
:return: dict
|
|
|
|
"""
|
2023-02-06 06:50:58 -05:00
|
|
|
return HubUsageToNrcanUsage().dictionary
|
2024-09-17 00:19:23 -04:00
|
|
|
@property
|
|
|
|
def hub_usage_to_cerc_usage(self) -> dict:
|
|
|
|
"""
|
|
|
|
Get hub usage to CERC usage, transformation dictionary
|
|
|
|
:return: dict
|
|
|
|
"""
|
|
|
|
return HubUsageToCercUsage().dictionary
|
2023-07-11 16:34:11 -04:00
|
|
|
@property
|
|
|
|
def hub_usage_to_eilat_usage(self) -> dict:
|
|
|
|
"""
|
|
|
|
Hub usage to Eilat usage, transformation dictionary
|
|
|
|
:return: dict
|
|
|
|
"""
|
|
|
|
return HubUsageToEilatUsage().dictionary
|
|
|
|
|
2023-01-26 06:35:55 -05:00
|
|
|
@property
|
2023-02-06 06:50:58 -05:00
|
|
|
def hub_function_to_nrcan_construction_function(self) -> dict:
|
2023-01-26 06:35:55 -05:00
|
|
|
"""
|
2023-02-06 06:29:21 -05:00
|
|
|
Get hub function to NRCAN construction function, transformation dictionary
|
2023-01-26 06:35:55 -05:00
|
|
|
:return: dict
|
|
|
|
"""
|
2023-02-06 06:50:58 -05:00
|
|
|
return HubFunctionToNrcanConstructionFunction().dictionary
|
2023-07-12 11:36:35 -04:00
|
|
|
|
|
|
|
@property
|
|
|
|
def hub_function_to_eilat_construction_function(self) -> dict:
|
|
|
|
"""
|
|
|
|
Get hub function to NRCAN construction function, transformation dictionary
|
|
|
|
:return: dict
|
|
|
|
"""
|
|
|
|
return HubFunctionToEilatConstructionFunction().dictionary
|
2024-09-17 00:19:23 -04:00
|
|
|
@property
|
|
|
|
def hub_function_to_cerc_construction_function(self) -> dict:
|
|
|
|
"""
|
|
|
|
Get hub function to Cerc construction function, transformation dictionary (copy of HubFunctionToNrcanConstructionFunction)
|
|
|
|
:return: dict
|
|
|
|
"""
|
|
|
|
return HubFunctionToCercConstructionFunction().dictionary
|
2023-01-26 06:35:55 -05:00
|
|
|
@property
|
2023-02-06 06:50:58 -05:00
|
|
|
def hub_function_to_nrel_construction_function(self) -> dict:
|
2023-01-26 06:35:55 -05:00
|
|
|
"""
|
2023-02-06 06:29:21 -05:00
|
|
|
Get hub function to NREL construction function, transformation dictionary
|
2023-01-26 06:35:55 -05:00
|
|
|
:return: dict
|
|
|
|
"""
|
2023-02-06 06:50:58 -05:00
|
|
|
return HubFunctionToNrelConstructionFunction().dictionary
|
2023-01-26 06:35:55 -05:00
|
|
|
|
|
|
|
@property
|
2023-02-06 06:50:58 -05:00
|
|
|
def pluto_function_to_hub_function(self) -> dict:
|
2023-01-26 06:35:55 -05:00
|
|
|
"""
|
2023-02-06 06:29:21 -05:00
|
|
|
Get Pluto function to hub function, transformation dictionary
|
2023-01-26 06:35:55 -05:00
|
|
|
:return: dict
|
|
|
|
"""
|
2023-02-06 06:50:58 -05:00
|
|
|
return PlutoFunctionToHubFunction().dictionary
|
2023-01-26 06:35:55 -05:00
|
|
|
|
|
|
|
@property
|
2023-02-06 06:50:58 -05:00
|
|
|
def hft_function_to_hub_function(self) -> dict:
|
2023-01-26 06:35:55 -05:00
|
|
|
"""
|
2023-02-06 06:29:21 -05:00
|
|
|
Get Hft function to hub function, transformation dictionary
|
2023-01-26 06:35:55 -05:00
|
|
|
:return: dict
|
|
|
|
"""
|
2023-02-06 06:50:58 -05:00
|
|
|
return HftFunctionToHubFunction().dictionary
|
2023-02-06 06:29:21 -05:00
|
|
|
|
|
|
|
@property
|
2023-02-06 06:50:58 -05:00
|
|
|
def montreal_function_to_hub_function(self) -> dict:
|
2023-02-06 06:29:21 -05:00
|
|
|
"""
|
|
|
|
Get Montreal function to hub function, transformation dictionary
|
|
|
|
"""
|
2023-02-06 06:50:58 -05:00
|
|
|
return MontrealFunctionToHubFunction().dictionary
|
2023-02-06 06:29:21 -05:00
|
|
|
|
|
|
|
@property
|
2023-02-06 06:50:58 -05:00
|
|
|
def alkis_function_to_hub_function(self) -> dict:
|
2023-02-06 06:29:21 -05:00
|
|
|
"""
|
|
|
|
Get Alkis function to hub function, transformation dictionary
|
|
|
|
"""
|
2023-02-06 06:50:58 -05:00
|
|
|
return AlkisFunctionToHubFunction().dictionary
|
2023-02-06 06:29:21 -05:00
|
|
|
|
2023-05-04 10:39:23 -04:00
|
|
|
@property
|
|
|
|
def montreal_system_to_hub_energy_generation_system(self):
|
|
|
|
"""
|
|
|
|
Get montreal custom system names to hub energy system names, transformation dictionary
|
|
|
|
"""
|
|
|
|
return MontrealSystemToHubEnergyGenerationSystem().dictionary
|
2023-05-12 09:27:29 -04:00
|
|
|
|
|
|
|
@property
|
|
|
|
def montreal_demand_type_to_hub_energy_demand_type(self):
|
|
|
|
"""
|
|
|
|
Get montreal custom system demand type to hub energy demand type, transformation dictionary
|
|
|
|
"""
|
|
|
|
return MontrealDemandTypeToHubEnergyDemandType().dictionary
|
|
|
|
|
2023-05-04 10:48:19 -04:00
|
|
|
@property
|
2023-04-25 09:59:52 -04:00
|
|
|
def hub_function_to_montreal_custom_costs_function(self) -> dict:
|
|
|
|
"""
|
|
|
|
Get hub function to Montreal custom costs function, transformation dictionary
|
|
|
|
:return: dict
|
|
|
|
"""
|
|
|
|
return HubFunctionToMontrealCustomCostsFunction().dictionary
|
2023-07-11 16:34:11 -04:00
|
|
|
|
|
|
|
@property
|
|
|
|
def eilat_function_to_hub_function(self) -> dict:
|
|
|
|
"""
|
|
|
|
Get Eilat's function to hub function, transformation dictionary
|
|
|
|
"""
|
|
|
|
return EilatFunctionToHubFunction().dictionary
|
2023-08-02 12:43:51 -04:00
|
|
|
|
|
|
|
@property
|
|
|
|
def montreal_custom_fuel_to_hub_fuel(self) -> dict:
|
|
|
|
"""
|
|
|
|
Get hub fuel from montreal_custom catalog fuel
|
|
|
|
"""
|
|
|
|
return MontrealCustomFuelToHubFuel().dictionary
|
2023-09-27 17:48:23 -04:00
|
|
|
|
2023-10-13 08:23:40 -04:00
|
|
|
@property
|
|
|
|
def montreal_generation_system_to_hub_energy_generation_system(self):
|
|
|
|
"""
|
|
|
|
Get montreal custom generation system names to hub energy system names, transformation dictionary
|
|
|
|
"""
|
|
|
|
return MontrealGenerationSystemToHubEnergyGenerationSystem().dictionary
|
|
|
|
|
2023-09-27 17:48:23 -04:00
|
|
|
@property
|
|
|
|
def north_america_demand_type_to_hub_energy_demand_type(self):
|
|
|
|
"""
|
2023-09-28 19:19:32 -04:00
|
|
|
Get north america system demand type to hub energy demand type, transformation dictionary
|
2023-09-27 17:48:23 -04:00
|
|
|
"""
|
|
|
|
return NorthAmericaDemandTypeToHubEnergyDemandType().dictionary
|
|
|
|
|
|
|
|
@property
|
|
|
|
def north_america_system_to_hub_energy_generation_system(self):
|
|
|
|
"""
|
2023-09-28 19:19:32 -04:00
|
|
|
Get north america system names to hub energy system names, transformation dictionary
|
2023-09-27 17:48:23 -04:00
|
|
|
"""
|
|
|
|
return NorthAmericaSystemToHubEnergyGenerationSystem().dictionary
|
|
|
|
|
|
|
|
@property
|
|
|
|
def north_america_custom_fuel_to_hub_fuel(self) -> dict:
|
|
|
|
"""
|
2023-09-28 19:19:32 -04:00
|
|
|
Get hub fuel from north_america catalog fuel
|
2023-09-27 17:48:23 -04:00
|
|
|
"""
|
|
|
|
return NorthAmericaCustomFuelToHubFuel().dictionary
|
2023-09-28 19:19:32 -04:00
|
|
|
|
|
|
|
@property
|
|
|
|
def north_america_storage_system_to_hub_storage(self):
|
|
|
|
"""
|
|
|
|
Get montreal custom system names to hub storage system
|
|
|
|
"""
|
|
|
|
return NorthAmericaStorageSystemToHubEnergyStorage().dictionary
|