Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfleis committed Mar 8, 2024
1 parent 46a967e commit 4c6af7f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions momepy/functional/_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,6 @@ def mean_interbuilding_distance(
return Series(
mean_distances, index=geometry.index, name="mean_interbuilding_distance"
)
# 35s new
# 57s old


def building_adjacency(
Expand Down Expand Up @@ -272,8 +270,3 @@ def building_adjacency(
result.name = "building_adjacency"
result.index.name = None
return result

# old: 251 ms ± 14.6 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
# new: 422 ms ± 12.3 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
# of which 330 ms is assign_self_weight which will be used in other functins so
# I'm wondering if it is worth adding a keyword `self_weighted=True` to skip this.

0 comments on commit 4c6af7f

Please sign in to comment.