nastasiasnk commited on
Commit
5fec45e
1 Parent(s): 7a4a991

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -133,7 +133,7 @@ def test(input_json):
133
  def computeAccessibility (DistanceMatrix,weightsNames, destinationWeights=None,alpha = 0.0038, threshold = 600):
134
 
135
  decay_factors = np.exp(-alpha * DistanceMatrix) * (DistanceMatrix <= threshold)
136
- subdomainsAccessibility = pd.DataFrame(index=DistanceMatrix.index, columns=weightsNames) #destinationWeights.columns)
137
  # for weighted accessibility (e. g. areas)
138
  if not destinationWeights.empty:
139
  for col,columnName in zip(destinationWeights.columns, weightsNames):
 
133
  def computeAccessibility (DistanceMatrix,weightsNames, destinationWeights=None,alpha = 0.0038, threshold = 600):
134
 
135
  decay_factors = np.exp(-alpha * DistanceMatrix) * (DistanceMatrix <= threshold)
136
+ subdomainsAccessibility = pd.DataFrame(index=DistanceMatrix.index, columns=destinationWeights.columns)
137
  # for weighted accessibility (e. g. areas)
138
  if not destinationWeights.empty:
139
  for col,columnName in zip(destinationWeights.columns, weightsNames):