Spaces:
Sleeping
Sleeping
nastasiasnk
commited on
Commit
•
56aa7c5
1
Parent(s):
994e9a3
Update app.py
Browse files
app.py
CHANGED
@@ -139,8 +139,11 @@ def test(input_json):
|
|
139 |
|
140 |
if df_lu_filtered is None:
|
141 |
landuses = inputs['input']["landuse_areas"]
|
|
|
|
|
142 |
else:
|
143 |
-
|
|
|
144 |
|
145 |
attributeMapperDict_gh = inputs['input']["attributeMapperDict"]
|
146 |
landuseMapperDict_gh = inputs['input']["landuseMapperDict"]
|
@@ -153,8 +156,6 @@ def test(input_json):
|
|
153 |
df_matrix = pd.DataFrame(matrix).T
|
154 |
df_matrix = df_matrix.round(0).astype(int)
|
155 |
|
156 |
-
df_landuses = pd.DataFrame(landuses).T
|
157 |
-
df_landuses = df_landuses.round(0).astype(int)
|
158 |
|
159 |
|
160 |
from imports_utils import splitDictByStrFragmentInColumnName
|
|
|
139 |
|
140 |
if df_lu_filtered is None:
|
141 |
landuses = inputs['input']["landuse_areas"]
|
142 |
+
df_landuses = pd.DataFrame(landuses).T
|
143 |
+
df_landuses = df_landuses.round(0).astype(int)
|
144 |
else:
|
145 |
+
df_landuses = df_lu_filtered
|
146 |
+
df_landuses = df_landuses.round(0).astype(int)
|
147 |
|
148 |
attributeMapperDict_gh = inputs['input']["attributeMapperDict"]
|
149 |
landuseMapperDict_gh = inputs['input']["landuseMapperDict"]
|
|
|
156 |
df_matrix = pd.DataFrame(matrix).T
|
157 |
df_matrix = df_matrix.round(0).astype(int)
|
158 |
|
|
|
|
|
159 |
|
160 |
|
161 |
from imports_utils import splitDictByStrFragmentInColumnName
|