Spaces:
Sleeping
Sleeping
nastasiasnk
commited on
Commit
•
b47098f
1
Parent(s):
d887ceb
Update app.py
Browse files
app.py
CHANGED
@@ -227,10 +227,11 @@ def test(input_json):
|
|
227 |
return subdomainsAccessibility
|
228 |
|
229 |
subdomainsAccessibility = computeAccessibility(df_matrix,LivabilitySubdomainsInputs,alpha,threshold)
|
230 |
-
transportAccessibility = computeAccessibility(
|
231 |
|
232 |
AccessibilityInputs = pd.concat([subdomainsAccessibility, transportAccessibility], axis=1)
|
233 |
|
|
|
234 |
|
235 |
def remap(value, B_min, B_max, C_min, C_max):
|
236 |
return C_min + (((value - B_min) / (B_max - B_min))* (C_max - C_min))
|
@@ -279,7 +280,7 @@ def test(input_json):
|
|
279 |
|
280 |
|
281 |
|
282 |
-
livability = accessibilityToLivability(df_matrix,
|
283 |
|
284 |
|
285 |
livability_dictionary = livability.to_dict('index')
|
|
|
227 |
return subdomainsAccessibility
|
228 |
|
229 |
subdomainsAccessibility = computeAccessibility(df_matrix,LivabilitySubdomainsInputs,alpha,threshold)
|
230 |
+
transportAccessibility = computeAccessibility(df_art_matrix,None,alpha,threshold)
|
231 |
|
232 |
AccessibilityInputs = pd.concat([subdomainsAccessibility, transportAccessibility], axis=1)
|
233 |
|
234 |
+
|
235 |
|
236 |
def remap(value, B_min, B_max, C_min, C_max):
|
237 |
return C_min + (((value - B_min) / (B_max - B_min))* (C_max - C_min))
|
|
|
280 |
|
281 |
|
282 |
|
283 |
+
livability = accessibilityToLivability(df_matrix,AccessibilityInputs,attributeMapperDict,domainsUnique)
|
284 |
|
285 |
|
286 |
livability_dictionary = livability.to_dict('index')
|