Skip to content

Commit

Permalink
clean a path that will never happen
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfleis committed Mar 10, 2024
1 parent 0d897cc commit f57eee0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions momepy/functional/_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,6 @@ def mean_interbuilding_distance(

for i in range(distance_matrix.shape[0]):
neighborhood_indices = np.append(neighborhood_matrix[i].indices, i)

if len(neighborhood_indices) == 0:
mean_distances[i] = np.nan

sub_matrix = distance_matrix[neighborhood_indices][:, neighborhood_indices]
mean_distances[i] = sub_matrix.sum() / sub_matrix.nnz

Expand Down

0 comments on commit f57eee0

Please sign in to comment.