Skip to content
Snippets Groups Projects
Commit b58055f0 authored by Laurens Oostwegel's avatar Laurens Oostwegel
Browse files

Apply 2 suggestion(s) to 2 file(s)


Co-authored-by: default avatarDanijel Schorlemmer <ds@gfz-potsdam.de>
parent df2fa563
No related branches found
No related tags found
No related merge requests found
Pipeline #75335 passed
......@@ -153,7 +153,7 @@ class HeightAndFloorspaceRule:
height -= min_height
# Check if the height is higher than 0.
if height < 0:
if height <= 0:
return None
return f"HHT:{height:.2f}"
......
......@@ -147,7 +147,7 @@ def test_get_stories_and_floorspace_from_osm(height_and_floorspace_rule):
def test_get_height_from_osm(height_and_floorspace_rule):
"""
Test the function `tag_to_float` of the `HeightAndFloorspaceRule.
Test the function `tag_to_float` of the `HeightAndFloorspaceRule`.
"""
rule_function = height_and_floorspace_rule.function.get_height_from_osm
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment