Spaces:
Sleeping
Sleeping
nastasiasnk
commited on
Commit
•
157cf08
1
Parent(s):
552f08c
Update app.py
Browse files
app.py
CHANGED
@@ -300,7 +300,7 @@ def test(input_json):
|
|
300 |
|
301 |
subdomainsAccessibility = computeAccessibility(df_dm,LivabilitySubdomainsInputs,alpha,threshold)
|
302 |
artAccessibility = computeAccessibility_pointOfInterest(df_art_matrix,'ART',alpha,threshold)
|
303 |
-
gmtAccessibility = computeAccessibility_pointOfInterest(
|
304 |
|
305 |
AccessibilityInputs = pd.concat([subdomainsAccessibility, artAccessibility,gmtAccessibility], axis=1)
|
306 |
|
@@ -360,6 +360,7 @@ def test(input_json):
|
|
360 |
LivabilitySubdomainsInputs_dictionary = LivabilitySubdomainsInputs.to_dict('index')
|
361 |
subdomainsAccessibility_dictionary = AccessibilityInputs.to_dict('index')
|
362 |
|
|
|
363 |
|
364 |
# Prepare the output
|
365 |
output = {
|
@@ -369,7 +370,7 @@ def test(input_json):
|
|
369 |
"luDomainMapper": landuseMapperDict,
|
370 |
"attributeMapper": attributeMapperDict,
|
371 |
"fetchDm": dm_dictionary,
|
372 |
-
"
|
373 |
}
|
374 |
|
375 |
|
|
|
300 |
|
301 |
subdomainsAccessibility = computeAccessibility(df_dm,LivabilitySubdomainsInputs,alpha,threshold)
|
302 |
artAccessibility = computeAccessibility_pointOfInterest(df_art_matrix,'ART',alpha,threshold)
|
303 |
+
gmtAccessibility = computeAccessibility_pointOfInterest(df_gmt_matrix,'GMT+HSR',alpha,threshold)
|
304 |
|
305 |
AccessibilityInputs = pd.concat([subdomainsAccessibility, artAccessibility,gmtAccessibility], axis=1)
|
306 |
|
|
|
360 |
LivabilitySubdomainsInputs_dictionary = LivabilitySubdomainsInputs.to_dict('index')
|
361 |
subdomainsAccessibility_dictionary = AccessibilityInputs.to_dict('index')
|
362 |
|
363 |
+
artmatrix = df_art_matrix.to_dict('index')
|
364 |
|
365 |
# Prepare the output
|
366 |
output = {
|
|
|
370 |
"luDomainMapper": landuseMapperDict,
|
371 |
"attributeMapper": attributeMapperDict,
|
372 |
"fetchDm": dm_dictionary,
|
373 |
+
"artmatrix":artmatrix
|
374 |
}
|
375 |
|
376 |
|