Spaces:
Sleeping
Sleeping
nastasiasnk
commited on
Commit
•
9c17797
1
Parent(s):
10608aa
Update app.py
Browse files
app.py
CHANGED
@@ -112,7 +112,9 @@ def test(input_json):
|
|
112 |
|
113 |
|
114 |
LivabilitySubdomainsWeights = landusesToSubdomains(df_matrix,df_landuses_filtered,landuseMapperDict,subdomainsUnique)
|
115 |
-
|
|
|
|
|
116 |
|
117 |
|
118 |
def computeAccessibility (DistanceMatrix,weightsNames, destinationWeights=None,alpha = 0.0038, threshold = 600):
|
@@ -184,7 +186,8 @@ def test(input_json):
|
|
184 |
# Prepare the output
|
185 |
output = {
|
186 |
"subdomainsAccessibility_dictionary": subdomainsAccessibility_dictionary,
|
187 |
-
"livability_dictionary": livability_dictionary
|
|
|
188 |
}
|
189 |
|
190 |
|
|
|
112 |
|
113 |
|
114 |
LivabilitySubdomainsWeights = landusesToSubdomains(df_matrix,df_landuses_filtered,landuseMapperDict,subdomainsUnique)
|
115 |
+
# make a dictionary to output in grasshopper / etc
|
116 |
+
LivabilitySubdomainsWeights_dictionary = LivabilitySubdomainsWeights.to_dict('index')
|
117 |
+
|
118 |
|
119 |
|
120 |
def computeAccessibility (DistanceMatrix,weightsNames, destinationWeights=None,alpha = 0.0038, threshold = 600):
|
|
|
186 |
# Prepare the output
|
187 |
output = {
|
188 |
"subdomainsAccessibility_dictionary": subdomainsAccessibility_dictionary,
|
189 |
+
"livability_dictionary": livability_dictionary,
|
190 |
+
"subdomainsArea_dictionary": LivabilitySubdomainsWeights_dictionary
|
191 |
}
|
192 |
|
193 |
|