Spaces:
Sleeping
Sleeping
nastasiasnk
commited on
Commit
•
45fd1bd
1
Parent(s):
b2048d5
Update app.py
Browse files
app.py
CHANGED
@@ -241,7 +241,7 @@ def test(input_json):
|
|
241 |
|
242 |
|
243 |
LivabilitySubdomainsWeights = landusesToSubdomains(df_dm,df_lu_filtered,landuseMapperDict,subdomainsUnique)
|
244 |
-
|
245 |
WorkplacesNumber = FindWorkplacesNumber(df_dm,attributeMapperDict,LivabilitySubdomainsWeights,subdomainsUnique)
|
246 |
|
247 |
# prepare an input weights dataframe for the parameter LivabilitySubdomainsInputs
|
@@ -265,7 +265,7 @@ def test(input_json):
|
|
265 |
subdomainsAccessibility_dictionary = AccessibilityInputs.to_dict('index')
|
266 |
artmatrix = df_art_matrix.to_dict('index')
|
267 |
|
268 |
-
|
269 |
|
270 |
LivabilitySubdomainsWeights_dictionary = LivabilitySubdomainsWeights.to_dict('index')
|
271 |
|
@@ -273,7 +273,7 @@ def test(input_json):
|
|
273 |
output = {
|
274 |
#"subdomainsAccessibility_dictionary": subdomainsAccessibility_dictionary,
|
275 |
#"livability_dictionary": livability_dictionary,
|
276 |
-
"subdomainsWeights_dictionary":
|
277 |
"luDomainMapper": landuseMapperDict,
|
278 |
"attributeMapper": attributeMapperDict,
|
279 |
"fetchDm": dm_dictionary,
|
|
|
241 |
|
242 |
|
243 |
LivabilitySubdomainsWeights = landusesToSubdomains(df_dm,df_lu_filtered,landuseMapperDict,subdomainsUnique)
|
244 |
+
|
245 |
WorkplacesNumber = FindWorkplacesNumber(df_dm,attributeMapperDict,LivabilitySubdomainsWeights,subdomainsUnique)
|
246 |
|
247 |
# prepare an input weights dataframe for the parameter LivabilitySubdomainsInputs
|
|
|
265 |
subdomainsAccessibility_dictionary = AccessibilityInputs.to_dict('index')
|
266 |
artmatrix = df_art_matrix.to_dict('index')
|
267 |
|
268 |
+
|
269 |
|
270 |
LivabilitySubdomainsWeights_dictionary = LivabilitySubdomainsWeights.to_dict('index')
|
271 |
|
|
|
273 |
output = {
|
274 |
#"subdomainsAccessibility_dictionary": subdomainsAccessibility_dictionary,
|
275 |
#"livability_dictionary": livability_dictionary,
|
276 |
+
"subdomainsWeights_dictionary": LivabilitySubdomainsInputs_dictionary,
|
277 |
"luDomainMapper": landuseMapperDict,
|
278 |
"attributeMapper": attributeMapperDict,
|
279 |
"fetchDm": dm_dictionary,
|