Small bug correction in the new dictionary structure
This commit is contained in:
parent
09bfe71d4d
commit
19fc822147
|
@ -181,5 +181,5 @@ class AlkisFunctionToHubFunction:
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def dictionary(self):
|
def dictionary(self) -> dict:
|
||||||
return self._dictionary
|
return self._dictionary
|
||||||
|
|
|
@ -28,5 +28,5 @@ class HftFunctionToHubFunction:
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def dictionary(self):
|
def dictionary(self) -> dict:
|
||||||
return self._dictionary
|
return self._dictionary
|
||||||
|
|
|
@ -74,5 +74,5 @@ class HubFunctionToNrcanConstructionFunction:
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def dictionary(self):
|
def dictionary(self) -> dict:
|
||||||
return self._dictionary
|
return self._dictionary
|
||||||
|
|
|
@ -74,5 +74,5 @@ class HubFunctionToNrelConstructionFunction:
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def dictionary(self):
|
def dictionary(self) -> dict:
|
||||||
return self._dictionary
|
return self._dictionary
|
||||||
|
|
|
@ -74,5 +74,5 @@ class HubUsageToComnetUsage:
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def dictionary(self):
|
def dictionary(self) -> dict:
|
||||||
return self._dictionary
|
return self._dictionary
|
||||||
|
|
|
@ -74,5 +74,5 @@ class HubUsageToHftUsage:
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def dictionary(self):
|
def dictionary(self) -> dict:
|
||||||
return self._dictionary
|
return self._dictionary
|
||||||
|
|
|
@ -74,5 +74,5 @@ class HubUsageToNrcanUsage:
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def dictionary(self):
|
def dictionary(self) -> dict:
|
||||||
return self._dictionary
|
return self._dictionary
|
||||||
|
|
|
@ -546,5 +546,5 @@ class MontrealFunctionToHubFunction:
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def dictionary(self):
|
def dictionary(self) -> dict:
|
||||||
return self._dictionary
|
return self._dictionary
|
||||||
|
|
|
@ -213,5 +213,5 @@ class PlutoFunctionToHubFunction:
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def dictionary(self):
|
def dictionary(self) -> dict:
|
||||||
return self._dictionary
|
return self._dictionary
|
||||||
|
|
|
@ -21,72 +21,72 @@ class Dictionaries:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def hub_usage_to_hft_usage(self):
|
def hub_usage_to_hft_usage(self) -> dict:
|
||||||
"""
|
"""
|
||||||
Hub usage to HfT usage, transformation dictionary
|
Hub usage to HfT usage, transformation dictionary
|
||||||
:return: dict
|
:return: dict
|
||||||
"""
|
"""
|
||||||
return HubUsageToHftUsage.dictionary
|
return HubUsageToHftUsage().dictionary
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def hub_usage_to_comnet_usage(self):
|
def hub_usage_to_comnet_usage(self) -> dict:
|
||||||
"""
|
"""
|
||||||
Hub usage to Comnet usage, transformation dictionary
|
Hub usage to Comnet usage, transformation dictionary
|
||||||
:return: dict
|
:return: dict
|
||||||
"""
|
"""
|
||||||
return HubUsageToComnetUsage.dictionary
|
return HubUsageToComnetUsage().dictionary
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def hub_usage_to_nrcan_usage(self):
|
def hub_usage_to_nrcan_usage(self) -> dict:
|
||||||
"""
|
"""
|
||||||
Get hub usage to NRCAN usage, transformation dictionary
|
Get hub usage to NRCAN usage, transformation dictionary
|
||||||
:return: dict
|
:return: dict
|
||||||
"""
|
"""
|
||||||
return HubUsageToNrcanUsage.dictionary
|
return HubUsageToNrcanUsage().dictionary
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def hub_function_to_nrcan_construction_function(self):
|
def hub_function_to_nrcan_construction_function(self) -> dict:
|
||||||
"""
|
"""
|
||||||
Get hub function to NRCAN construction function, transformation dictionary
|
Get hub function to NRCAN construction function, transformation dictionary
|
||||||
:return: dict
|
:return: dict
|
||||||
"""
|
"""
|
||||||
return HubFunctionToNrcanConstructionFunction.dictionary
|
return HubFunctionToNrcanConstructionFunction().dictionary
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def hub_function_to_nrel_construction_function(self):
|
def hub_function_to_nrel_construction_function(self) -> dict:
|
||||||
"""
|
"""
|
||||||
Get hub function to NREL construction function, transformation dictionary
|
Get hub function to NREL construction function, transformation dictionary
|
||||||
:return: dict
|
:return: dict
|
||||||
"""
|
"""
|
||||||
return HubFunctionToNrelConstructionFunction.dictionary
|
return HubFunctionToNrelConstructionFunction().dictionary
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def pluto_function_to_hub_function(self):
|
def pluto_function_to_hub_function(self) -> dict:
|
||||||
"""
|
"""
|
||||||
Get Pluto function to hub function, transformation dictionary
|
Get Pluto function to hub function, transformation dictionary
|
||||||
:return: dict
|
:return: dict
|
||||||
"""
|
"""
|
||||||
return PlutoFunctionToHubFunction.dictionary
|
return PlutoFunctionToHubFunction().dictionary
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def hft_function_to_hub_function(self):
|
def hft_function_to_hub_function(self) -> dict:
|
||||||
"""
|
"""
|
||||||
Get Hft function to hub function, transformation dictionary
|
Get Hft function to hub function, transformation dictionary
|
||||||
:return: dict
|
:return: dict
|
||||||
"""
|
"""
|
||||||
return HftFunctionToHubFunction.dictionary
|
return HftFunctionToHubFunction().dictionary
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def montreal_function_to_hub_function(self):
|
def montreal_function_to_hub_function(self) -> dict:
|
||||||
"""
|
"""
|
||||||
Get Montreal function to hub function, transformation dictionary
|
Get Montreal function to hub function, transformation dictionary
|
||||||
"""
|
"""
|
||||||
return MontrealFunctionToHubFunction.dictionary
|
return MontrealFunctionToHubFunction().dictionary
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def alkis_function_to_hub_function(self):
|
def alkis_function_to_hub_function(self) -> dict:
|
||||||
"""
|
"""
|
||||||
Get Alkis function to hub function, transformation dictionary
|
Get Alkis function to hub function, transformation dictionary
|
||||||
"""
|
"""
|
||||||
return AlkisFunctionToHubFunction.dictionary
|
return AlkisFunctionToHubFunction().dictionary
|
||||||
|
|
||||||
|
|
1
setup.py
1
setup.py
|
@ -62,6 +62,7 @@ setup(
|
||||||
'hub.exports.energy_systems',
|
'hub.exports.energy_systems',
|
||||||
'hub.exports.formats',
|
'hub.exports.formats',
|
||||||
'hub.helpers',
|
'hub.helpers',
|
||||||
|
'hub.helpers.data',
|
||||||
'hub.hub_logger',
|
'hub.hub_logger',
|
||||||
'hub.imports',
|
'hub.imports',
|
||||||
'hub.imports.construction',
|
'hub.imports.construction',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user