nastasiasnk commited on
Commit
b236779
1 Parent(s): 0e7acf1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -179,7 +179,7 @@ def test(input_json):
179
 
180
  from imports_utils import splitDictByStrFragmentInColumnName
181
 
182
- """
183
 
184
  # create a mask based on the matrix size and ids, crop activity nodes to the mask
185
  mask_connected = dfMatrix.index.tolist()
@@ -233,18 +233,18 @@ def test(input_json):
233
  subdomainsAccessibility_dictionary = subdomainsAccessibility.to_dict('index')
234
  LivabilitySubdomainsWeights_dictionary = LivabilitySubdomainsWeights.to_dict('index')
235
 
236
- """
237
  # Prepare the output
238
  output = {
239
- #"subdomainsAccessibility_dictionary": subdomainsAccessibility_dictionary,
240
- #"livability_dictionary": livability_dictionary,
241
- #"subdomainsWeights_dictionary": LivabilitySubdomainsInputs_dictionary,
242
- #"luDomainMapper": landuseMapperDict,
243
- #"attributeMapper": livabilityMapperDict,
244
  #"fetchDm": matrices,
245
  "dm_an": df_dm_dict
246
- #"landuses":df_lu_filtered_dict,
247
- #"constants": [alpha, threshold]
248
  }
249
 
250
 
 
179
 
180
  from imports_utils import splitDictByStrFragmentInColumnName
181
 
182
+
183
 
184
  # create a mask based on the matrix size and ids, crop activity nodes to the mask
185
  mask_connected = dfMatrix.index.tolist()
 
233
  subdomainsAccessibility_dictionary = subdomainsAccessibility.to_dict('index')
234
  LivabilitySubdomainsWeights_dictionary = LivabilitySubdomainsWeights.to_dict('index')
235
 
236
+
237
  # Prepare the output
238
  output = {
239
+ "subdomainsAccessibility_dictionary": subdomainsAccessibility_dictionary,
240
+ "livability_dictionary": livability_dictionary,
241
+ "subdomainsWeights_dictionary": LivabilitySubdomainsInputs_dictionary,
242
+ "luDomainMapper": landuseMapperDict,
243
+ "attributeMapper": livabilityMapperDict,
244
  #"fetchDm": matrices,
245
  "dm_an": df_dm_dict
246
+ "landuses":df_lu_filtered_dict,
247
+ "constants": [alpha, threshold]
248
  }
249
 
250