Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
production
building-knowledge-centre
building-dao
Commits
53a56897
Commit
53a56897
authored
Sep 24, 2019
by
Marc-Andre Santune
Browse files
add get_number_of_visible_facades
parent
132f11a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
building_dao/building_generic.py
building_dao/building_generic.py
+10
-0
No files found.
building_dao/building_generic.py
View file @
53a56897
...
...
@@ -111,6 +111,16 @@ class BuildingGeneric:
)
# ----------------- 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
:
"""Get facade image from Hbase"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment