Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
multi-area-model
Manage
Activity
Members
Labels
Plan
Issues
7
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IAS-6
multi-area-model
Commits
505bbcac
Commit
505bbcac
authored
6 years ago
by
Maximilian Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Naming of variable in helper function
parent
976a9436
No related branches found
No related tags found
1 merge request
!1
Add all necessary files for the multi-area model
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
figures/Schmidt2018/helpers.py
+5
-3
5 additions, 3 deletions
figures/Schmidt2018/helpers.py
with
5 additions
and
3 deletions
figures/Schmidt2018/helpers.py
+
5
−
3
View file @
505bbcac
...
...
@@ -61,7 +61,7 @@ def hierarchical_relation(target_area, source_area, SLN_completed, thresh=(0.35,
return
'
same-area
'
def
structural_gradient
(
target_area
,
source_area
,
structure
):
def
structural_gradient
(
target_area
,
source_area
,
arch_types
):
"""
Returns the structural gradient between two areas
See Schmidt, M., Bakker, R., Hilgetag, C.C. et al.
...
...
@@ -74,11 +74,13 @@ def structural_gradient(target_area, source_area, structure):
Name of target area.
source_area : str
Name of source area.
arch_types : dict
Dictionary containing the architectural type for each area.
"""
if
target_area
!=
source_area
:
if
structure
[
target_area
]
<
structure
[
source_area
]:
if
arch_types
[
target_area
]
<
arch_types
[
source_area
]:
return
'
HL
'
elif
structure
[
target_area
]
>
structure
[
source_area
]:
elif
arch_types
[
target_area
]
>
arch_types
[
source_area
]:
return
'
LH
'
else
:
return
'
HZ
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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