Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rabotnik-rules
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Global Dynamic Exposure
rabotnik
rabotnik-rules
Commits
b58055f0
Commit
b58055f0
authored
8 months ago
by
Laurens Oostwegel
Browse files
Options
Downloads
Patches
Plain Diff
Apply 2 suggestion(s) to 2 file(s)
Co-authored-by:
Danijel Schorlemmer
<
ds@gfz-potsdam.de
>
parent
df2fa563
No related branches found
No related tags found
No related merge requests found
Pipeline
#75335
passed
8 months ago
Stage: tests
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
building/02_process/height_and_floorspace/height_and_floorspace.py
+1
-1
1 addition, 1 deletion
...02_process/height_and_floorspace/height_and_floorspace.py
tests/test_height_and_floorspace_rule.py
+1
-1
1 addition, 1 deletion
tests/test_height_and_floorspace_rule.py
with
2 additions
and
2 deletions
building/02_process/height_and_floorspace/height_and_floorspace.py
+
1
−
1
View file @
b58055f0
...
...
@@ -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
:
.
2
f
}
"
...
...
This diff is collapsed.
Click to expand it.
tests/test_height_and_floorspace_rule.py
+
1
−
1
View file @
b58055f0
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment