Spaces:
Sleeping
Sleeping
nastasiasnk
commited on
Commit
•
c8fcda6
1
Parent(s):
7da3f75
Update app.py
Browse files
app.py
CHANGED
@@ -76,11 +76,15 @@ else:
|
|
76 |
df_lu = df_speckle_lu.copy()
|
77 |
df_lu = df_lu.astype(str)
|
78 |
df_lu = df_lu.set_index("uuid", drop=False)
|
79 |
-
|
|
|
|
|
|
|
|
|
80 |
df_dm = matrices[distanceMatrixActivityNodes]
|
81 |
|
82 |
df_dm_dict = df_dm.to_dict('index')
|
83 |
-
|
84 |
|
85 |
|
86 |
|
@@ -106,7 +110,7 @@ else:
|
|
106 |
df_lu_filtered = df_lu_filtered.apply(pd.to_numeric, errors='coerce')
|
107 |
df_lu_filtered = df_lu_filtered.astype(int)
|
108 |
df_lu_filtered = df_lu_filtered.T.groupby(level=0).sum().T
|
109 |
-
|
110 |
|
111 |
|
112 |
|
@@ -234,7 +238,7 @@ def test(input_json):
|
|
234 |
#"subdomainsWeights_dictionary": LivabilitySubdomainsInputs_dictionary,
|
235 |
#"luDomainMapper": landuseMapperDict,
|
236 |
#"attributeMapper": livabilityMapperDict,
|
237 |
-
"fetchDm":
|
238 |
|
239 |
#"landuses":df_lu_filtered_dict,
|
240 |
#"constants": [alpha, threshold]
|
|
|
76 |
df_lu = df_speckle_lu.copy()
|
77 |
df_lu = df_lu.astype(str)
|
78 |
df_lu = df_lu.set_index("uuid", drop=False)
|
79 |
+
|
80 |
+
|
81 |
+
matrices_dict = matrices.to_dict('index')
|
82 |
+
|
83 |
+
"""
|
84 |
df_dm = matrices[distanceMatrixActivityNodes]
|
85 |
|
86 |
df_dm_dict = df_dm.to_dict('index')
|
87 |
+
|
88 |
|
89 |
|
90 |
|
|
|
110 |
df_lu_filtered = df_lu_filtered.apply(pd.to_numeric, errors='coerce')
|
111 |
df_lu_filtered = df_lu_filtered.astype(int)
|
112 |
df_lu_filtered = df_lu_filtered.T.groupby(level=0).sum().T
|
113 |
+
"""
|
114 |
|
115 |
|
116 |
|
|
|
238 |
#"subdomainsWeights_dictionary": LivabilitySubdomainsInputs_dictionary,
|
239 |
#"luDomainMapper": landuseMapperDict,
|
240 |
#"attributeMapper": livabilityMapperDict,
|
241 |
+
"fetchDm": matrices_dict
|
242 |
|
243 |
#"landuses":df_lu_filtered_dict,
|
244 |
#"constants": [alpha, threshold]
|