Skip to content
Snippets Groups Projects
Commit 505bbcac authored by Maximilian Schmidt's avatar Maximilian Schmidt
Browse files

Naming of variable in helper function

parent 976a9436
No related branches found
No related tags found
1 merge request!1Add all necessary files for the multi-area model
......@@ -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'
......
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