Spaces:
Sleeping
Sleeping
nastasiasnk
commited on
Commit
•
a87f16e
1
Parent(s):
e0bd5ea
Update app.py
Browse files
app.py
CHANGED
@@ -168,7 +168,7 @@ def test(input_json):
|
|
168 |
threshold = inputs['input']["threshold"]
|
169 |
threshold = float(threshold)
|
170 |
|
171 |
-
|
172 |
valid_indexes = [idx for idx in mask_connected if idx in dfLanduses.index]
|
173 |
# Identify and report missing indexes
|
174 |
missing_indexes = set(mask_connected) - set(valid_indexes)
|
@@ -213,14 +213,14 @@ def test(input_json):
|
|
213 |
subdomainsAccessibility_dictionary = subdomainsAccessibility.to_dict('index')
|
214 |
LivabilitySubdomainsWeights_dictionary = LivabilitySubdomainsWeights.to_dict('index')
|
215 |
|
216 |
-
|
217 |
# Prepare the output
|
218 |
output = {
|
219 |
-
"subdomainsAccessibility_dictionary": subdomainsAccessibility_dictionary,
|
220 |
-
"livability_dictionary": livability_dictionary,
|
221 |
-
"subdomainsWeights_dictionary": LivabilitySubdomainsInputs_dictionary,
|
222 |
-
"luDomainMapper": landuseMapperDict,
|
223 |
-
"attributeMapper": livabilityMapperDict,
|
224 |
"mask_connected": mask_connected,
|
225 |
"dm_an": df_dm_dict,
|
226 |
"landuses":df_lu_filtered_dict,
|
|
|
168 |
threshold = inputs['input']["threshold"]
|
169 |
threshold = float(threshold)
|
170 |
|
171 |
+
"""
|
172 |
valid_indexes = [idx for idx in mask_connected if idx in dfLanduses.index]
|
173 |
# Identify and report missing indexes
|
174 |
missing_indexes = set(mask_connected) - set(valid_indexes)
|
|
|
213 |
subdomainsAccessibility_dictionary = subdomainsAccessibility.to_dict('index')
|
214 |
LivabilitySubdomainsWeights_dictionary = LivabilitySubdomainsWeights.to_dict('index')
|
215 |
|
216 |
+
"""
|
217 |
# Prepare the output
|
218 |
output = {
|
219 |
+
#"subdomainsAccessibility_dictionary": subdomainsAccessibility_dictionary,
|
220 |
+
#"livability_dictionary": livability_dictionary,
|
221 |
+
#"subdomainsWeights_dictionary": LivabilitySubdomainsInputs_dictionary,
|
222 |
+
#"luDomainMapper": landuseMapperDict,
|
223 |
+
#"attributeMapper": livabilityMapperDict,
|
224 |
"mask_connected": mask_connected,
|
225 |
"dm_an": df_dm_dict,
|
226 |
"landuses":df_lu_filtered_dict,
|