From 505bbcac41e0358c83c45308b8ad7e6b95e22b50 Mon Sep 17 00:00:00 2001
From: Maximilian Schmidt <max.schmidt@fz-juelich.de>
Date: Fri, 25 May 2018 18:29:02 +0900
Subject: [PATCH] Naming of variable in helper function

---
 figures/Schmidt2018/helpers.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/figures/Schmidt2018/helpers.py b/figures/Schmidt2018/helpers.py
index 927ed22..1c2de12 100644
--- a/figures/Schmidt2018/helpers.py
+++ b/figures/Schmidt2018/helpers.py
@@ -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'
-- 
GitLab