nastasiasnk commited on
Commit
e517d5e
1 Parent(s): c024d74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -35,8 +35,9 @@ def test(input_json):
35
 
36
  df_matrix = pd.DataFrame(matrix).T
37
  df_weights = pd.DataFrame(weights).T
38
-
39
-
 
40
  def computeAccessibility (DistanceMatrix,destinationWeights, alpha = 0.0038, threshold = 600):
41
 
42
  decay_factors = np.exp(-alpha * DistanceMatrix) * (DistanceMatrix <= threshold)
 
35
 
36
  df_matrix = pd.DataFrame(matrix).T
37
  df_weights = pd.DataFrame(weights).T
38
+ df_matrix = df_matrix.round(0).astype(int)
39
+ df_weights = df_weights.round(0).astype(int)
40
+
41
  def computeAccessibility (DistanceMatrix,destinationWeights, alpha = 0.0038, threshold = 600):
42
 
43
  decay_factors = np.exp(-alpha * DistanceMatrix) * (DistanceMatrix <= threshold)