Add missing values to reference city to climate zone and to montreal functions
This commit is contained in:
parent
d564218531
commit
7c29405f21
|
@ -73,7 +73,9 @@ class HubUsageToComnetUsage:
|
||||||
cte.AUTOMOTIVE_FACILITY: 'BA Automotive Facility',
|
cte.AUTOMOTIVE_FACILITY: 'BA Automotive Facility',
|
||||||
cte.PARKING_GARAGE: 'BA Parking Garage',
|
cte.PARKING_GARAGE: 'BA Parking Garage',
|
||||||
cte.RELIGIOUS: 'BA Religious Building',
|
cte.RELIGIOUS: 'BA Religious Building',
|
||||||
cte.NON_HEATED: 'n/a'
|
cte.NON_HEATED: 'n/a',
|
||||||
|
cte.DATACENTER: 'n/a',
|
||||||
|
cte.FARM: 'n/a'
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
@ -17,7 +17,9 @@ class HubUsageToEilatUsage:
|
||||||
self._dictionary = {
|
self._dictionary = {
|
||||||
cte.RESIDENTIAL: 'Residential',
|
cte.RESIDENTIAL: 'Residential',
|
||||||
cte.HOTEL: 'Hotel employees',
|
cte.HOTEL: 'Hotel employees',
|
||||||
cte.DORMITORY: 'Dormitory'
|
cte.DORMITORY: 'Dormitory',
|
||||||
|
cte.DATACENTER: 'n/a',
|
||||||
|
cte.FARM: 'n/a'
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
@ -73,7 +73,9 @@ class HubUsageToHftUsage:
|
||||||
cte.AUTOMOTIVE_FACILITY: 'n/a',
|
cte.AUTOMOTIVE_FACILITY: 'n/a',
|
||||||
cte.PARKING_GARAGE: 'n/a',
|
cte.PARKING_GARAGE: 'n/a',
|
||||||
cte.RELIGIOUS: 'event location',
|
cte.RELIGIOUS: 'event location',
|
||||||
cte.NON_HEATED: 'non-heated'
|
cte.NON_HEATED: 'non-heated',
|
||||||
|
cte.DATACENTER: 'n/a',
|
||||||
|
cte.FARM: 'n/a'
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
@ -73,7 +73,10 @@ class HubUsageToNrcanUsage:
|
||||||
cte.AUTOMOTIVE_FACILITY: 'Automotive facility',
|
cte.AUTOMOTIVE_FACILITY: 'Automotive facility',
|
||||||
cte.PARKING_GARAGE: 'Storage garage',
|
cte.PARKING_GARAGE: 'Storage garage',
|
||||||
cte.RELIGIOUS: 'Religious building',
|
cte.RELIGIOUS: 'Religious building',
|
||||||
cte.NON_HEATED: 'n/a'
|
cte.NON_HEATED: 'n/a',
|
||||||
|
cte.DATACENTER: 'n/a',
|
||||||
|
cte.FARM: 'n/a'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
@ -30,13 +30,13 @@ class TestResultsImport(TestCase):
|
||||||
"""
|
"""
|
||||||
self._example_path = (Path(__file__).parent / 'tests_data').resolve()
|
self._example_path = (Path(__file__).parent / 'tests_data').resolve()
|
||||||
self._output_path = (Path(__file__).parent / 'tests_outputs').resolve()
|
self._output_path = (Path(__file__).parent / 'tests_outputs').resolve()
|
||||||
file = 'test.geojson'
|
file = '2163_v1.geojson'
|
||||||
file_path = (self._example_path / file).resolve()
|
file_path = (self._example_path / file).resolve()
|
||||||
self._city = GeometryFactory('geojson',
|
self._city = GeometryFactory('geojson',
|
||||||
path=file_path,
|
path=file_path,
|
||||||
height_field='citygml_me',
|
height_field='height',
|
||||||
year_of_construction_field='ANNEE_CONS',
|
year_of_construction_field='year_of_construction',
|
||||||
function_field='CODE_UTILI',
|
function_field='function',
|
||||||
function_to_hub=Dictionaries().montreal_function_to_hub_function).city
|
function_to_hub=Dictionaries().montreal_function_to_hub_function).city
|
||||||
|
|
||||||
ConstructionFactory('nrcan', self._city).enrich()
|
ConstructionFactory('nrcan', self._city).enrich()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user