nastasiasnk commited on
Commit
d72ce6e
1 Parent(s): c945acc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -84,7 +84,7 @@ else:
84
  df_dm = df_dm.round(0).astype(int)
85
 
86
  #df_dm_transport = matrices[distanceMatrixTransportStops]
87
- dm_dictionary = df_dm.to_dict('index')
88
  #df_dm_transport_dictionary = df_dm_transport.to_dict('index')
89
 
90
  # filter activity nodes attributes
@@ -103,7 +103,7 @@ else:
103
  df_lu_filtered = df_lu_filtered.astype(int)
104
  df_lu_filtered = df_lu_filtered.T.groupby(level=0).sum().T
105
 
106
- df_lu_filtered_dict = df_lu_filtered.to_dict('index')
107
 
108
 
109
 
@@ -135,11 +135,12 @@ def test(input_json):
135
  dfMatrix = dfMatrix.replace([np.inf, -np.inf], 10000).fillna(0)
136
  dfMatrix = dfMatrix.round(0).astype(int)
137
  else:
138
- dfLanduses = df_lu_filtered.copy()
139
- #dfLanduses = dfLanduses.round(0).astype(int)
140
  dfMatrix = df_dm.copy()
141
 
142
-
 
 
143
 
144
  attributeMapperDict_gh = inputs['input']["attributeMapperDict"]
145
  landuseMapperDict_gh = inputs['input']["landuseMapperDict"]
 
84
  df_dm = df_dm.round(0).astype(int)
85
 
86
  #df_dm_transport = matrices[distanceMatrixTransportStops]
87
+
88
  #df_dm_transport_dictionary = df_dm_transport.to_dict('index')
89
 
90
  # filter activity nodes attributes
 
103
  df_lu_filtered = df_lu_filtered.astype(int)
104
  df_lu_filtered = df_lu_filtered.T.groupby(level=0).sum().T
105
 
106
+
107
 
108
 
109
 
 
135
  dfMatrix = dfMatrix.replace([np.inf, -np.inf], 10000).fillna(0)
136
  dfMatrix = dfMatrix.round(0).astype(int)
137
  else:
138
+ dfLanduses = df_lu_filtered.copy()
 
139
  dfMatrix = df_dm.copy()
140
 
141
+
142
+ df_lu_filtered_dict = dfLanduses.to_dict('index')
143
+ dm_dictionary = dfMatrix.to_dict('index')
144
 
145
  attributeMapperDict_gh = inputs['input']["attributeMapperDict"]
146
  landuseMapperDict_gh = inputs['input']["landuseMapperDict"]