Changed hard-coded values to constant values

This commit is contained in:
Pilar 2021-11-11 17:27:19 -05:00
parent 1657808b77
commit 3babe097f2

View File

@ -33,28 +33,26 @@ class SchedulesHelper:
# usage # usage
function_to_usage = { function_to_usage = {
'full service restaurant': 'restaurant', 'full service restaurant': cte.RESTAURANT,
'high-rise apartment': cte.RESIDENTIAL, 'high-rise apartment': cte.RESIDENTIAL,
'hospital': 'health care', 'hospital': cte.HEALTH_CARE,
'large hotel': 'hotel', 'large hotel': cte.HOTEL,
'large office': 'office and administration', 'large office': cte.OFFICE_ADMINISTRATION,
'medium office': 'office and administration', 'medium office': cte.OFFICE_ADMINISTRATION,
'midrise apartment': cte.RESIDENTIAL, 'midrise apartment': cte.RESIDENTIAL,
'outpatient healthcare': 'health care', 'outpatient healthcare': cte.HEALTH_CARE,
'primary school': 'education', 'primary school': cte.EDUCATION,
'quick service restaurant': 'restaurant', 'quick service restaurant': cte.RESTAURANT,
'secondary school': 'education', 'secondary school': cte.EDUCATION,
'small hotel': 'hotel', 'small hotel': cte.HOTEL,
'small office': 'office and administration', 'small office': cte.OFFICE_ADMINISTRATION,
'stand-alone-retail': 'retail', 'stand-alone-retail': cte.RETAIL,
'strip mall': 'hall', 'strip mall': cte.HALL,
'supermarket': 'retail', 'supermarket': cte.RETAIL,
'warehouse': 'industry', 'warehouse': cte.INDUSTRY,
'residential': cte.RESIDENTIAL 'residential': cte.RESIDENTIAL
} }
@staticmethod @staticmethod
def comnet_from_usage(usage): def comnet_from_usage(usage):
""" """