Fix typos
This commit is contained in:
parent
da819ad9d0
commit
f0a72919ff
@ -262,7 +262,7 @@ class Building(CityObject):
|
|||||||
@property
|
@property
|
||||||
def usages(self) -> Union[None, list]:
|
def usages(self) -> Union[None, list]:
|
||||||
"""
|
"""
|
||||||
Get building usages, if none, assume useage is function
|
Get building usages, if none, assume usage is function
|
||||||
:return: None or list of functions
|
:return: None or list of functions
|
||||||
"""
|
"""
|
||||||
if self._usages is None and self._function is not None:
|
if self._usages is None and self._function is not None:
|
||||||
|
@ -8,7 +8,7 @@ Project Coder Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
|||||||
from hub.helpers.parsers.list_usage_to_hub import ListUsageToHub
|
from hub.helpers.parsers.list_usage_to_hub import ListUsageToHub
|
||||||
from hub.helpers.parsers.string_usage_to_hub import StringUsageToHub
|
from hub.helpers.parsers.string_usage_to_hub import StringUsageToHub
|
||||||
|
|
||||||
class UseageParsers:
|
class UsageParsers:
|
||||||
"""
|
"""
|
||||||
Dictionaries class
|
Dictionaries class
|
||||||
"""
|
"""
|
||||||
|
@ -11,7 +11,7 @@ from hub.imports.geometry_factory import GeometryFactory
|
|||||||
from hub.imports.construction_factory import ConstructionFactory
|
from hub.imports.construction_factory import ConstructionFactory
|
||||||
from hub.imports.usage_factory import UsageFactory
|
from hub.imports.usage_factory import UsageFactory
|
||||||
from hub.helpers.dictionaries import Dictionaries
|
from hub.helpers.dictionaries import Dictionaries
|
||||||
from hub.helpers.usage_parsers import UseageParsers
|
from hub.helpers.usage_parsers import UsageParsers
|
||||||
|
|
||||||
|
|
||||||
class TestUsageFactory(TestCase):
|
class TestUsageFactory(TestCase):
|
||||||
@ -185,7 +185,7 @@ class TestUsageFactory(TestCase):
|
|||||||
file_path = (self._example_path / file).resolve()
|
file_path = (self._example_path / file).resolve()
|
||||||
|
|
||||||
function_dictionary = Dictionaries().montreal_function_to_hub_function
|
function_dictionary = Dictionaries().montreal_function_to_hub_function
|
||||||
usage_parser = UseageParsers().list_usage_to_hub(function_dictionary=function_dictionary)
|
usage_parser = UsageParsers().list_usage_to_hub(function_dictionary=function_dictionary)
|
||||||
|
|
||||||
city = GeometryFactory('geojson',
|
city = GeometryFactory('geojson',
|
||||||
path=file_path,
|
path=file_path,
|
||||||
|
Loading…
Reference in New Issue
Block a user