Commit 53a56897 authored by Marc-Andre Santune's avatar Marc-Andre Santune
Browse files

add get_number_of_visible_facades

parent 132f11a3
...@@ -111,6 +111,16 @@ class BuildingGeneric: ...@@ -111,6 +111,16 @@ class BuildingGeneric:
) )
# ----------------- Facade level --------------------- # ----------------- Facade level ---------------------
def get_number_of_visible_facades(self):
"""Determine the number of visible facades in building"""
number_of_visible_facades = 0
for facade in self._building["facade"]:
for _ in facade["visible_facades"]:
number_of_visible_facades = number_of_visible_facades + 1
return number_of_visible_facades
def get_facade_image_by_name(self, facade_id: str, image_name: str) -> str: def get_facade_image_by_name(self, facade_id: str, image_name: str) -> str:
"""Get facade image from Hbase""" """Get facade image from Hbase"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment