2020-10-22 11:02:41 -04:00
|
|
|
"""
|
|
|
|
Geometry helper
|
|
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
|
|
|
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
class OccupancyHelper:
|
2020-12-14 10:51:10 -05:00
|
|
|
occupancy_pluto_function = {
|
2020-11-04 11:56:57 -05:00
|
|
|
'C1': 'C-12 Residential',
|
2020-11-27 11:31:25 -05:00
|
|
|
'C5': 'C-12 Residential',
|
2020-11-04 11:56:57 -05:00
|
|
|
'D3': 'C-12 Residential',
|
|
|
|
'D6': 'C-12 Residential',
|
2020-10-22 11:02:41 -04:00
|
|
|
'I1': 'C-2 Health',
|
2020-11-04 11:56:57 -05:00
|
|
|
'RI': 'C-12 Residential',
|
|
|
|
'RM': 'C-12 Residential',
|
|
|
|
'U0': 'C-10 Warehouse',
|
|
|
|
'W4': 'C-9 School',
|
2020-10-22 11:02:41 -04:00
|
|
|
}
|
2020-12-14 10:51:10 -05:00
|
|
|
occupancy_function = {
|
|
|
|
'residential': 'C-12 Residential'
|
|
|
|
}
|
2020-10-22 11:02:41 -04:00
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
def pluto_occupancy_function(building_pluto_function):
|
|
|
|
"""
|
|
|
|
Get nrel function from the given pluto function
|
|
|
|
:param building_pluto_function: str
|
|
|
|
:return: str
|
|
|
|
"""
|
2020-12-14 10:51:10 -05:00
|
|
|
try:
|
|
|
|
return OccupancyHelper.occupancy_pluto_function[building_pluto_function]
|
|
|
|
except KeyError:
|
|
|
|
return OccupancyHelper.occupancy_function[building_pluto_function]
|